From 7bce7f28dcc6bfaaa547fd291c62ef8f3d8d3520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 31 Jan 2023 18:25:32 +0800 Subject: [PATCH] make lint happy --- plugin/warframeapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/warframeapi/api.go b/plugin/warframeapi/api.go index f4cfd608..b14054da 100644 --- a/plugin/warframeapi/api.go +++ b/plugin/warframeapi/api.go @@ -36,7 +36,7 @@ func getitemsorder(cnName string, onlyMaxRank bool) (od orders, it *itemsInSet, return } err = json.Unmarshal(data, &wfapiio) - if len(wfapiio.Payload.Orders) <= 0 { + if len(wfapiio.Payload.Orders) == 0 { err = errors.New("no such name") } od = make(orders, 0, len(wfapiio.Payload.Orders))