Skip to content

Commit

Permalink
Remove the redundant return value of the open function
Browse files Browse the repository at this point in the history
  • Loading branch information
SimFG committed Jun 23, 2022
1 parent 78c80fb commit 441583b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer.go
Expand Up @@ -78,7 +78,7 @@ func open(paths []string) ([]zapcore.WriteSyncer, func(), error) {
}
if openErr != nil {
close()
return writers, nil, openErr
return nil, nil, openErr
}

return writers, close, nil
Expand Down

0 comments on commit 441583b

Please sign in to comment.