fix golint warnings

This commit is contained in:
stremovsky
2020-01-07 21:25:22 +02:00
parent b7c40ca03c
commit 62456dcdaf
8 changed files with 65 additions and 38 deletions

View File

@@ -122,7 +122,10 @@ func (dbobj dbcon) getAuditEvents(userTOKEN string, offset int32, limit int32) (
results = append(results, element)
}
resultJSON, _ := json.Marshal(records)
resultJSON, err := json.Marshal(records)
if err != nil {
return nil, 0, err
}
//fmt.Printf("Found multiple documents (array of pointers): %+v\n", results)
return resultJSON, count, nil
}