mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
📝 Doc undefined return case
This commit is contained in:
parent
7a04a414f7
commit
1988ed9e92
@ -94,7 +94,7 @@ class Project extends Model
|
||||
#
|
||||
# uri - The {String} name of the path to convert.
|
||||
#
|
||||
# Returns a String.
|
||||
# Returns a {String} or undefined if the uri is not missing or empty.
|
||||
resolve: (uri) ->
|
||||
return unless uri
|
||||
|
||||
@ -102,7 +102,7 @@ class Project extends Model
|
||||
uri
|
||||
else
|
||||
uri = path.join(@getPath(), uri) unless fs.isAbsolute(uri)
|
||||
fs.absolute uri
|
||||
fs.absolute(uri)
|
||||
|
||||
# Public: Make the given path relative to the project directory.
|
||||
relativize: (fullPath) ->
|
||||
|
Loading…
Reference in New Issue
Block a user