File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,7 @@ export default class Hash extends Command {
3030
3131 //check params after evaluating all
3232 this . checkParameters ( flags , args )
33- let hashedString = this . calculateHash ( flags , args )
34-
35- if ( flags . outputFile ) { // if output path is provided then write to file also
36- Utilities . writeStringToFile ( this , flags . outputFile , hashedString )
37- }
33+ this . calculateHash ( flags , args )
3834 }
3935
4036 // to check required parameters passed or not
@@ -50,7 +46,10 @@ export default class Hash extends Command {
5046 // @ts -ignore
5147 let hashed : string = hashObject ( args . string )
5248 Logger . success ( this , `[${ flags . type . toUpperCase ( ) } ] ${ hashed } ` )
53- return hashed
49+
50+ if ( flags . outputFile ) { // if output path is provided then write to file also
51+ Utilities . writeStringToFile ( this , flags . outputFile , hashed )
52+ }
5453 }
5554
5655 // BACKUP function
You can’t perform that action at this time.
0 commit comments