Skip to content

Commit 2c8c401

Browse files
authored
remove pointless condition due to os.Exit (#1294)
1 parent 056be8b commit 2c8c401

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/src/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ func main() {
102102
}
103103

104104
// if we didn't run a migrated command, then lets try running the legacy version
105-
if !ranMigratedCmd {
106-
commands.run(flag.CommandLine, "src", usageText, normalizeDashHelp(os.Args[1:]))
107-
}
105+
commands.run(flag.CommandLine, "src", usageText, normalizeDashHelp(os.Args[1:]))
108106
}
109107

110108
// normalizeDashHelp converts --help to -help since Go's flag parser only supports single dash.

0 commit comments

Comments
 (0)