Skip to content

Commit

Permalink
Fix revive linter errors
Browse files Browse the repository at this point in the history
- if-return linting errors
- unused-parameter linting error
  • Loading branch information
atc0005 committed May 8, 2023
1 parent c091c27 commit ff63455
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions internal/config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,5 @@ func (c *Config) handleFlagsConfig(appType AppType) error {
c.flagSet.Usage = Usage(c.flagSet, os.Stdout)

// parse flag definitions from the argument list
if err := c.flagSet.Parse(os.Args[1:]); err != nil {
return err
}

return nil

return c.flagSet.Parse(os.Args[1:])
}
7 changes: 1 addition & 6 deletions internal/config/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,5 @@ func (c *Config) setupLogging(appType AppType) error {
Str("timeout", c.Timeout().String()).
Logger()

if err := setLoggingLevel(c.LoggingLevel); err != nil {
return err
}

return nil

return setLoggingLevel(c.LoggingLevel)
}
2 changes: 1 addition & 1 deletion internal/reports/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ func ComponentsOneLineCheckSummary(
// commonly displayed on the detailed service check results display in the web
// UI or in the body of many notifications.
func ComponentsReport(
stateLabel string,
_ string,
filter components.Filter,
componentsSet *components.Set,
omitOKComponents bool,
Expand Down

0 comments on commit ff63455

Please sign in to comment.