Fix small lint errors found by gocritic

This commit is contained in:
Deluan
2021-07-15 13:42:54 -04:00
parent 8d56ec898e
commit b0fc684cb6
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ func (a *Agents) GetSimilar(ctx context.Context, id, name, mbid string, limit in
continue
}
similar, err := agent.GetSimilar(ctx, id, name, mbid, limit)
if len(similar) >= 0 && err == nil {
if len(similar) > 0 && err == nil {
log.Debug(ctx, "Got Similar Artists", "agent", ag.AgentName(), "artist", name, "similar", similar, "elapsed", time.Since(start))
return similar, err
}