Explorar el Código

Update package.js

Lutz Roeder hace 7 meses
padre
commit
ef2d620fa5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      package.js

+ 1 - 1
package.js

@@ -9,7 +9,7 @@ import * as url from 'url';
 const args = process.argv.slice(2);
 
 const read = (match) => {
-    if (args.length > 0 || (!match || args[0] === match)) {
+    if (args.length > 0 && (!match || args[0] === match)) {
         return args.shift();
     }
     return null;