Enable vetshadow linter

This commit is contained in:
Andrey Smirnov
2017-05-04 23:00:13 +03:00
parent a9a5a73dfd
commit 5ce6bf8718
18 changed files with 82 additions and 65 deletions

View File

@@ -82,7 +82,7 @@ func aptlyTaskRun(cmd *commander.Command, args []string) error {
for i, command := range cmdList {
if !commandErrored {
err := context.ReOpenDatabase()
err = context.ReOpenDatabase()
if err != nil {
return fmt.Errorf("failed to reopen DB: %s", err)
}