From 66ac5c365191d7515f7f796e95a754f6882cda8e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 5 Jul 2025 11:12:37 +0200 Subject: Code simplification --- src/http.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index 6feb865..4a56430 100644 --- a/src/http.go +++ b/src/http.go @@ -139,13 +139,13 @@ func mintageHandler(next http.Handler) http.Handler { } var err error - td.Mintages, err = dbx.GetMintages(td.Code) + td.Mintages, err = dbx.GetMintages(td.Code, dbx.NewMintageType(td.Type)) if err != nil { throwError(http.StatusInternalServerError, err, w, r) return } - processMintages(&td.Mintages, td.Type) + /* processMintages(&td.Mintages, td.Type) */ next.ServeHTTP(w, r) }) } @@ -191,7 +191,7 @@ func throwError(status int, err error, w http.ResponseWriter, r *http.Request) { }) } -func processMintages(md *dbx.MintageData, typeStr string) { +/* func processMintages(md *dbx.MintageData, typeStr string) { var typ int switch typeStr { case "nifc": @@ -221,4 +221,4 @@ func processMintages(md *dbx.MintageData, typeStr string) { } return strings.Compare(x.Mintmark, y.Mintmark) }) -} +} */ -- cgit v1.2.3