From aab86b2e9de6d16ba44535f62e2deca40a594135 Mon Sep 17 00:00:00 2001 From: Mostafa Eweda Date: Tue, 19 May 2015 20:15:13 -0700 Subject: [PATCH] enforced test: code nits --- src/default-directory-provider.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/default-directory-provider.coffee b/src/default-directory-provider.coffee index 01de244d8..da2d17593 100644 --- a/src/default-directory-provider.coffee +++ b/src/default-directory-provider.coffee @@ -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))