File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,13 @@ const hasCleanIndex = (filePath: string): boolean => {
62
62
resolve ( filePath ) ,
63
63
] ;
64
64
65
- let result = true ;
66
65
try {
67
- child_process . execFileSync ( COMMAND , args , OPTIONS ) . toString ( ) ;
66
+ child_process . execFileSync ( COMMAND , args , OPTIONS ) ;
68
67
} catch ( err : unknown ) {
69
- result = false ;
68
+ return false ;
70
69
}
71
70
72
- return result ;
71
+ return true ;
73
72
} ;
74
73
75
74
const fetchFromOrigin = ( branch : string ) => {
@@ -80,9 +79,7 @@ const fetchFromOrigin = (branch: string) => {
80
79
branch ,
81
80
] ;
82
81
83
- try {
84
- child_process . execFileSync ( COMMAND , args , OPTIONS ) . toString ( ) ;
85
- } catch ( err : unknown ) { }
82
+ child_process . execFileSync ( COMMAND , args , OPTIONS ) ;
86
83
} ;
87
84
88
85
const getUntrackedFileList = ( staged = false ) : string [ ] => {
You can’t perform that action at this time.
0 commit comments