From 6b56df5543b8ba74256d45ca0c23281841adc005 Mon Sep 17 00:00:00 2001 From: emli Date: Mon, 5 Mar 2018 19:19:50 +0600 Subject: [PATCH] Hot-fix for empty name and token --- download/download.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/download/download.go b/download/download.go index 5ba396f..4eca2d2 100644 --- a/download/download.go +++ b/download/download.go @@ -140,7 +140,6 @@ func Info(repo string, r *http.Request) []byte { if len(subname) != 0 { name = subname } - list := db.Search(name) if len(tag) > 0 { listByTag, err := db.Tag(tag) @@ -162,7 +161,7 @@ func Info(repo string, r *http.Request) []byte { if err == nil && len(items) > 0 && items[0].ID != "" { return output } - return nil + //return nil } pstr := strings.Split(page, ",")