diff --git a/lib/less-node/file-manager.js b/lib/less-node/file-manager.js index afe55632..542347c9 100644 --- a/lib/less-node/file-manager.js +++ b/lib/less-node/file-manager.js @@ -82,9 +82,8 @@ FileManager.prototype.loadFile = function(filename, currentDirectory, options, e } catch (e) {} } - else { - fullFilename = options.ext ? self.tryAppendExtension(fullFilename, options.ext) : fullFilename; - } + + fullFilename = options.ext ? self.tryAppendExtension(fullFilename, options.ext) : fullFilename; if (self.files[fullFilename]) { fulfill({ contents: self.files[fullFilename], filename: fullFilename});