mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
lint: fix issues
This commit is contained in:
@@ -79,7 +79,7 @@ func (s *ServeCmd) Run(ctx *Context) error {
|
||||
case "block":
|
||||
defer profile.Start(profile.BlockProfile, profilePath).Stop()
|
||||
default:
|
||||
log.Fatal().Msgf("Unknown profiler: %s", s.Profiler)
|
||||
log.Fatal().Msgf("Unknown profiler: %s", s.Profiler) //nolint:gocritic // defer not set if profiler is unknown
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user