enable durationcheck, predeclared, unconvert, unused and wastedassign linters
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -256,7 +256,7 @@ func restoreBackup(ifName, containerID, backupPath string) error {
|
||||
}
|
||||
|
||||
config := configToRestore{}
|
||||
if err = json.Unmarshal([]byte(file), &config); err != nil {
|
||||
if err = json.Unmarshal(file, &config); err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user