Skip to content

Commit

Permalink
πŸ’©πŸ‘Œ make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 9, 2021
1 parent 98a92af commit 0568a5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugin_manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,10 @@ func saveConfig() error {
f, err1 := os.OpenFile(confile, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0644)
if err1 != nil {
return err1
} else {
defer f.Close()
_, err2 := f.Write(data)
return err2
}
defer f.Close()
_, err2 := f.Write(data)
return err2
}
return nil
}

0 comments on commit 0568a5d

Please sign in to comment.