Make megacheck happier

This commit is contained in:
Frank Denis 2018-01-18 14:28:05 +01:00
parent 0a63975d48
commit 7e86477a7d
1 changed files with 3 additions and 3 deletions

View File

@ -105,15 +105,15 @@ func NewSource(url string, minisignKeyStr string, cacheFile string, formatStr st
return source, err
}
res, err := minisignKey.Verify([]byte(in), signature)
if err != nil || res != true {
if err != nil || !res {
return source, err
}
if cached == false {
if !cached {
if err = AtomicFileWrite(cacheFile, []byte(in)); err != nil {
return source, err
}
}
if sigCached == false {
if !sigCached {
if err = AtomicFileWrite(sigCacheFile, []byte(sigStr)); err != nil {
return source, err
}