linter fixes

This commit is contained in:
Thibault bui Koechlin 2020-05-20 18:05:05 +02:00
parent e643bb5b31
commit e86b163ba5
3 changed files with 1 additions and 7 deletions

View file

@ -185,7 +185,6 @@ cscli api credentials # Display your API credentials
}
fmt.Printf("machine_id: %s\n", outputCTX.API.Creds.User)
fmt.Printf("password: %s\n", outputCTX.API.Creds.Password)
return
},
}
@ -202,7 +201,6 @@ cscli api credentials # Display your API credentials
if err := outputCTX.API.Enroll(userID); err != nil {
log.Fatalf(err.Error())
}
return
},
}
@ -223,7 +221,6 @@ cscli api credentials # Display your API credentials
}
fmt.Printf("machine_id: %s\n", outputCTX.API.Creds.User)
fmt.Printf("password: %s\n", outputCTX.API.Creds.Password)
return
},
}
@ -241,7 +238,6 @@ cscli api credentials # Display your API credentials
if err != nil {
log.Fatalf(err.Error())
}
return
},
}
@ -255,7 +251,6 @@ cscli api credentials # Display your API credentials
if err := dumpCredentials(); err != nil {
log.Fatalf(err.Error())
}
return
},
}

View file

@ -190,7 +190,6 @@ func AcquisStartReading(ctx *FileAcquisCtx, output chan types.Event, AcquisTomb
}
}
log.Printf("Started %d routines for polling/read", len(ctx.Files))
return
}
/*A tail-mode file reader (tail) */

View file

@ -66,7 +66,7 @@ func (p *pluginDB) ReadAT(timeAT time.Time) ([]map[string]string, error) {
return ret, nil
}
//nolint:unused // New is used by the plugin system
//nolint:deadcode,unused // New is used by the plugin system
func New() interface{} {
return &pluginDB{}
}