/*
GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2023 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if err != nil {
log.Fatal(err)
}
- isEqual := bytes.Compare(hasher.Sum(digest[:0]), expected) == 0
+ isEqual := bytes.Equal(hasher.Sum(digest[:0]), expected)
hasher.Reset()
if isEqual {
fmt.Println("GOOD", hasherName, pkgName)