Skip to content

Commit

Permalink
Remove if statement whose condition is always false.
Browse files Browse the repository at this point in the history
The packageNames slice will never be empty.  If the flag -packages is empty,
packageNames will contain the empty string, and the package in the current
directory will be analyzed.
  • Loading branch information
jcd authored and jessmcclintock committed Sep 19, 2023
1 parent dff4529 commit ace8b60
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/capslock/capslock.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ var (
func main() {
flag.Parse()
packageNames := strings.Split(*packageList, ",")
if len(packageNames) == 0 {
log.Fatal("No packages provided")
}
if *disableBuiltin && *customMap == "" {
log.Fatal("Error: --disable_builtin only makes sense with a --capability_map file specified")
}
Expand Down

0 comments on commit ace8b60

Please sign in to comment.