Skip to content

Commit

Permalink
delete unreachable test code caused by os.Exit (#1073)
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <[email protected]>

Signed-off-by: Abirdcfly <[email protected]>
  • Loading branch information
Abirdcfly authored Aug 11, 2022
1 parent c95c054 commit 17420e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/pkg/cli/option_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,6 @@ var OutputColorizationFlagSection = FlagSection{
parser: func(args []string, argc int, pargi *int, options *TOptions) {
colorizer.ListColorCodes()
os.Exit(0)
*pargi += 1
},
},

Expand All @@ -2447,7 +2446,6 @@ var OutputColorizationFlagSection = FlagSection{
parser: func(args []string, argc int, pargi *int, options *TOptions) {
colorizer.ListColorNames()
os.Exit(0)
*pargi += 1
},
},

Expand Down

0 comments on commit 17420e9

Please sign in to comment.