Explorar o código

fixed README typo

sanex3339 %!s(int64=8) %!d(string=hai) anos
pai
achega
4951e8e11b
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 1
      README.md
  2. 1 0
      src/storages/ArrayStorage.ts

+ 1 - 1
README.md

@@ -124,7 +124,7 @@ For available options see [options](#options).
 Usage:
 Usage:
 ```sh
 ```sh
 javascript-obfuscator in.js [options]
 javascript-obfuscator in.js [options]
-javascript-obfuscator in.js -output out.js [options]
+javascript-obfuscator in.js --output out.js [options]
 ```
 ```
 
 
 If the destination path is not specified through `--output` option, obfuscated code will saved into input file directory with name like `INPUT_FILE_NAME-obfuscated.js`
 If the destination path is not specified through `--output` option, obfuscated code will saved into input file directory with name like `INPUT_FILE_NAME-obfuscated.js`

+ 1 - 0
src/storages/ArrayStorage.ts

@@ -45,6 +45,7 @@ export abstract class ArrayStorage <T> implements IStorage <T> {
      */
      */
     public getKeyOf (value: T): number | null {
     public getKeyOf (value: T): number | null {
         const key: number = this.storage.indexOf(value);
         const key: number = this.storage.indexOf(value);
+
         return key >= 0 ? key : null;
         return key >= 0 ? key : null;
     }
     }