Skip to content

Commit

Permalink
Removed uneccessary nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Smirnov authored and pinebit committed Mar 15, 2022
1 parent 2f97ac6 commit 0cdda9e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/monitoring/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ import (
func main() {
coreLog, closeLggr := logger.NewLogger()
defer func() {
if closeLggr != nil {
if err := closeLggr(); err != nil {
log.Println(fmt.Sprintf("Error while closing Logger: %v", err))
}
if err := closeLggr(); err != nil {
log.Println(fmt.Sprintf("Error while closing Logger: %v", err))
}
}()
l := logWrapper{coreLog}
Expand Down

0 comments on commit 0cdda9e

Please sign in to comment.