summaryrefslogtreecommitdiffhomepage
path: root/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage.go')
-rw-r--r--storage.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage.go b/storage.go
index 738826e..ee3489a 100644
--- a/storage.go
+++ b/storage.go
@@ -6,13 +6,11 @@ import (
"encoding/json"
"errors"
"fmt"
- "io"
"io/ioutil"
"net/http"
"os"
"regexp"
"sort"
- "strconv"
)
type Storage struct {
@@ -45,7 +43,7 @@ func (b *Battle) CalculateHash() {
return killmails[lhs].Id < killmails[rhs].Id
})
for _, km := range killmails {
- io.WriteString(hash, strconv.FormatUint(km.Id, 10))
+ fmt.Fprint(hash, km.Id)
}
sum := hash.Sum(nil)
b.Id = hex.EncodeToString(sum[:])