diff options
Diffstat (limited to 'storage.go')
-rw-r--r-- | storage.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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[:]) |