build: fix new lint errors with golangci-lint v1.55.0

This commit is contained in:
Nick Craig-Wood 2023-10-20 18:52:58 +01:00
parent 5b0d3d060f
commit 750ed556a5
2 changed files with 6 additions and 8 deletions

View File

@ -121,9 +121,8 @@ func (p *Prop) Hashes() (hashes map[hash.Type]string) {
hashes = make(map[hash.Type]string)
hashes[hash.SHA1] = *p.MESha1Hex
return hashes
} else {
return nil
}
return nil
}
// PropValue is a tagged name and value

View File

@ -37,13 +37,12 @@ func GetSupportedGOARM() int {
// means it can run programs built with GOARM value 6 and lower,
// but not 7.
return 6
} else {
// This CPU has no VFP floating point hardware, which means it can
// only run programs built with GOARM value 5, which is minimum supported.
// Note that the CPU can still in reality be based on e.g. ARMv7
// architecture, but simply lack hardfloat support.
return 5
}
// This CPU has no VFP floating point hardware, which means it can
// only run programs built with GOARM value 5, which is minimum supported.
// Note that the CPU can still in reality be based on e.g. ARMv7
// architecture, but simply lack hardfloat support.
return 5
}
return 0
}