diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-05 11:12:37 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-05 11:12:37 +0200 |
commit | 66ac5c365191d7515f7f796e95a754f6882cda8e (patch) | |
tree | 99de370773a33d21a6f8bf13c72b842ec0e782a6 /src/http.go | |
parent | 5a12e3e229e112e6b316c9ee9f762e36f321271d (diff) |
Code simplification
Diffstat (limited to 'src/http.go')
-rw-r--r-- | src/http.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) }) -} +} */ |