From 0f6665c80ce19e03faa9b6619698123f74b17735 Mon Sep 17 00:00:00 2001 From: zhengziyi Date: Sat, 26 Oct 2024 16:14:39 +0800 Subject: [PATCH] fix: golint --- internal/commands/interceptor/instance.go | 2 +- internal/commands/profiling/asyncprofiler/asyncprofiler.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/commands/interceptor/instance.go b/internal/commands/interceptor/instance.go index 2537fc6..7335ae8 100644 --- a/internal/commands/interceptor/instance.go +++ b/internal/commands/interceptor/instance.go @@ -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) { if id != "" { parts := strings.Split(id, "_") if len(parts) != 2 { diff --git a/internal/commands/profiling/asyncprofiler/asyncprofiler.go b/internal/commands/profiling/asyncprofiler/asyncprofiler.go index c5212c4..e68086c 100644 --- a/internal/commands/profiling/asyncprofiler/asyncprofiler.go +++ b/internal/commands/profiling/asyncprofiler/asyncprofiler.go @@ -17,9 +17,7 @@ package asyncprofiler -import ( - "github.com/urfave/cli/v2" -) +import "github.com/urfave/cli/v2" var Command = &cli.Command{ Name: "async",