mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
build: fix new lint errors with golangci-lint v1.55.0
This commit is contained in:
parent
5b0d3d060f
commit
750ed556a5
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user