Skip to content

Commit

Permalink
address comments from #1597
Browse files Browse the repository at this point in the history
  • Loading branch information
shahms committed Sep 6, 2023
1 parent 061cc37 commit e476eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions language/go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ import (
"strconv"
"strings"

"github.com/bazelbuild/bazel-gazelle/internal/module"

"github.com/bazelbuild/bazel-gazelle/config"
gzflag "github.com/bazelbuild/bazel-gazelle/flag"
"github.com/bazelbuild/bazel-gazelle/internal/module"
"github.com/bazelbuild/bazel-gazelle/internal/version"
"github.com/bazelbuild/bazel-gazelle/language/proto"
"github.com/bazelbuild/bazel-gazelle/repo"
Expand Down Expand Up @@ -160,8 +159,7 @@ func (m testMode) String() string {
case fileTestMode:
return "file"
default:
log.Panicf("unknown mode %d", m)
return ""
return "unknown"
}
}

Expand Down
2 changes: 1 addition & 1 deletion language/go/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
type goPackage struct {
name, dir, rel string
library, binary, test goTarget
tests []goTarget
tests []goTarget
proto protoTarget
hasTestdata bool
hasMainFunction bool
Expand Down

0 comments on commit e476eeb

Please sign in to comment.