Skip to content

Commit

Permalink
refactor: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao-Ma5566 committed Apr 26, 2024
1 parent abd0d21 commit 8bb0137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/sigo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Copyright (C) 2022 CGI France \n License GPLv3: GNU GPL version 3 <https://gnu.o
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.`, version, commit, buildDate, builtBy),
Run: func(cmd *cobra.Command, args []string) {
// nolint: exhaustivestruct
//nolint: exhaustivestruct
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})

definition.flagIsSet(*cmd)
Expand Down Expand Up @@ -156,7 +156,7 @@ func run(definition pdef, logs logs) {
debugger = sigo.NewNoDebugger()
}

var cpuProfiler interface{ Stop()}
var cpuProfiler interface{ Stop() }

if logs.profiling {
cpuProfiler = profile.Start(profile.ProfilePath("."))
Expand Down Expand Up @@ -203,7 +203,7 @@ func initLog(logs logs, entropy bool) {
if logs.jsonlog {
logger = zerolog.New(os.Stderr)
} else {
// nolint: exhaustivestruct
//nolint: exhaustivestruct
logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr, NoColor: !color})
}

Expand Down

0 comments on commit 8bb0137

Please sign in to comment.