File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -300,13 +300,13 @@ func main() {
300
300
}
301
301
302
302
// FLAG_BUILD_PATH
303
- buildPathUnquoted , err := gohasissues . Unquote ( * buildPathFlag )
304
- if err != nil {
305
- printCompleteError ( err )
306
- }
307
- buildPath := paths . New ( buildPathUnquoted )
308
- if buildPath != nil {
309
- // TODO: mmmmhhh... this one looks like a bug, why check existence?
303
+ if * buildPathFlag != "" {
304
+ buildPathUnquoted , err := gohasissues . Unquote ( * buildPathFlag )
305
+ if err != nil {
306
+ printCompleteError ( err )
307
+ }
308
+ buildPath := paths . New ( buildPathUnquoted )
309
+
310
310
if _ , err := buildPath .Stat (); err != nil {
311
311
fmt .Fprintln (os .Stderr , err )
312
312
os .Exit (1 )
@@ -384,6 +384,7 @@ func main() {
384
384
ctx .SetLogger (i18n.HumanLogger {})
385
385
}
386
386
387
+ var err error
387
388
if * dumpPrefsFlag {
388
389
err = builder .RunParseHardwareAndDumpBuildProperties (ctx )
389
390
} else if * preprocessFlag || * codeCompleteAtFlag != "" {
You can’t perform that action at this time.
0 commit comments