make lint happy

This commit is contained in:
源文雨 2023-01-31 18:25:32 +08:00
parent 8c695c96d7
commit 7bce7f28dc

View File

@ -36,7 +36,7 @@ func getitemsorder(cnName string, onlyMaxRank bool) (od orders, it *itemsInSet,
return return
} }
err = json.Unmarshal(data, &wfapiio) err = json.Unmarshal(data, &wfapiio)
if len(wfapiio.Payload.Orders) <= 0 { if len(wfapiio.Payload.Orders) == 0 {
err = errors.New("no such name") err = errors.New("no such name")
} }
od = make(orders, 0, len(wfapiio.Payload.Orders)) od = make(orders, 0, len(wfapiio.Payload.Orders))