mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
fix: remove linting issues
This commit is contained in:
parent
6c507433e8
commit
e4e1127f8e
7 changed files with 24 additions and 19 deletions
|
@ -62,7 +62,7 @@ func Execute() {
|
|||
func PreRun(cmd *cobra.Command, args []string) {
|
||||
f := cmd.PersistentFlags()
|
||||
|
||||
if enabled, _ := f.GetBool("debug"); enabled == true {
|
||||
if enabled, _ := f.GetBool("debug"); enabled {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,10 @@ func Run(c *cobra.Command, names []string) {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
runUpgradesOnSchedule(filter)
|
||||
if err := runUpgradesOnSchedule(filter); err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue