Other: add straightforward linters

This commit is contained in:
Jakub
2021-04-08 08:00:39 +02:00
parent 7d0af7624c
commit 2d95f21567
49 changed files with 148 additions and 139 deletions

View File

@ -108,7 +108,7 @@ func thereIsNoDatabaseFileForUser(bddUserID string) error {
}
filePath := ctx.GetDatabaseFilePath(account.UserID())
if _, err := os.Stat(filePath); err != nil {
return nil
return nil //nolint[nilerr] Error means the file is not there or not accessible so test passed
}
return internalError(os.Remove(filePath), "removing database file of %s", account.Username())
}