mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
enforced test: code nits
This commit is contained in:
@@ -15,8 +15,8 @@ class DefaultDirectoryProvider
|
||||
# * {Directory} if the given URI is compatible with this provider.
|
||||
# * `null` if the given URI is not compatibile with this provider.
|
||||
directoryForURISync: (uri) ->
|
||||
normalizedPath = path.normalize(uri);
|
||||
{protocol} = url.parse(uri || '')
|
||||
normalizedPath = path.normalize(uri)
|
||||
{protocol} = url.parse(uri)
|
||||
directoryPath = if protocol?
|
||||
uri
|
||||
else if not fs.isDirectorySync(normalizedPath) and fs.isDirectorySync(path.dirname(normalizedPath))
|
||||
|
||||
Reference in New Issue
Block a user