Skip to content

Commit

Permalink
fix: golint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengziyi committed Oct 26, 2024
1 parent 8a00dee commit 0f6665c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/commands/interceptor/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func parseInstanceSlice(required bool, idSliceFlagName, nameSliceFlagName, servi
}
}

func encode(serviceID, nameFlagName, id, name string) (string, string, error) {
func encode(serviceID, nameFlagName, id, name string) (encodedId, encodedName string, err error) {

Check failure on line 152 in internal/commands/interceptor/instance.go

View workflow job for this annotation

GitHub Actions / Golang Lint

var-naming: func result encodedId should be encodedID (revive)
if id != "" {
parts := strings.Split(id, "_")
if len(parts) != 2 {
Expand Down
4 changes: 1 addition & 3 deletions internal/commands/profiling/asyncprofiler/asyncprofiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

package asyncprofiler

import (
"github.com/urfave/cli/v2"
)
import "github.com/urfave/cli/v2"

var Command = &cli.Command{
Name: "async",
Expand Down

0 comments on commit 0f6665c

Please sign in to comment.