v2: housekeeping: address minor lint complaints (#2957)

* v2: housekeeping: update tools

* v2: housekeeping: adhere to US locale in spelling

* v2: housekeeping: simplify code
This commit is contained in:
Mohammed Al Sahaf
2020-01-03 21:33:22 +03:00
committed by Matt Holt
parent 8c7c2e4af2
commit dff78d82ce
9 changed files with 12 additions and 15 deletions

View File

@@ -96,7 +96,7 @@ func (fw FileWriter) WriterKey() string {
// OpenWriter opens a new file writer.
func (fw FileWriter) OpenWriter() (io.WriteCloser, error) {
// roll log files by default
if fw.Roll == nil || *fw.Roll == true {
if fw.Roll == nil || *fw.Roll {
if fw.RollSizeMB == 0 {
fw.RollSizeMB = 100
}