Skip to content

Commit

Permalink
Merge pull request #156 from foomo/fix/go-lint-param
Browse files Browse the repository at this point in the history
fix(golang/go): lint param
  • Loading branch information
franklinkim authored Nov 11, 2024
2 parents 30293a9 + e4aa15a commit 1d37860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golang/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ func (c *Command) workUse(ctx context.Context, r *readline.Readline) error {
func (c *Command) lint(ctx context.Context, r *readline.Readline) error {
fsd := r.FlagSets().Default()
var paths []string
if r.Args().HasIndex(2) {
paths = []string{r.Args().At(2)}
if r.Args().HasIndex(1) {
paths = []string{r.Args().At(1)}
} else {
paths = c.paths(ctx, "go.mod", true)
}
Expand Down

0 comments on commit 1d37860

Please sign in to comment.