Fix for linter error on CI build.

This commit is contained in:
Paul Aikman
2016-02-17 16:20:45 +00:00
parent 826a359cb3
commit 17a2bec396

View File

@@ -16,7 +16,7 @@ class DefaultDirectoryProvider
# * `null` if the given URI is not compatibile with this provider.
directoryForURISync: (uri) ->
normalizedPath = path.normalize(uri)
host = url.parse(uri).host;
{host} = url.parse(uri)
directoryPath = if host
uri
else if not fs.isDirectorySync(normalizedPath) and fs.isDirectorySync(path.dirname(normalizedPath))