📝 Doc undefined return case

This commit is contained in:
Kevin Sawicki 2014-02-18 18:59:46 -08:00
parent 7a04a414f7
commit 1988ed9e92

View File

@ -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) ->