From ca8a0d55bacb4f8c3a02a575239c893cd05e5e39 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 9 Jun 2018 18:10:49 +1200 Subject: [PATCH] compatibility fixes for hashids library --- Metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Metadata.go b/Metadata.go index 0efda4a..1d40d7b 100644 --- a/Metadata.go +++ b/Metadata.go @@ -47,7 +47,7 @@ func idToString(v uint64) string { hd := hashids.NewData() hd.Salt = hashIdSalt hd.MinLength = hashIdMinLength - h, _ := hashids.NewWithData(hd) + h := hashids.NewWithData(hd) s, _ := h.EncodeInt64([]int64{int64(v)}) return s }