Explorar el Código

clean up unnecessary var

Brian Gough hace 5 años
padre
commit
cee93a0cd9
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      services/clsi/app/js/OutputFileFinder.js

+ 1 - 2
services/clsi/app/js/OutputFileFinder.js

@@ -74,8 +74,7 @@ module.exports = OutputFileFinder = {
       let fileList = stdout.trim().split('\n')
       fileList = fileList.map(function (file) {
         // Strip leading directory
-        let path
-        return (path = Path.relative(directory, file))
+        return Path.relative(directory, file)
       })
       callback(null, fileList)
     })