1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-17 12:00:29 +00:00

*.go: go-staticcheck linting

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2022-04-08 22:47:26 -04:00
parent 4760b77e54
commit 3bc8e48538
Signed by: vbatts
GPG key ID: 10937E57733F1362
6 changed files with 6 additions and 42 deletions

View file

@ -174,9 +174,7 @@ func keyValDifference(this, that []KeyVal) []KeyVal {
}
func keyValCopy(set []KeyVal) []KeyVal {
ret := make([]KeyVal, len(set))
for i := range set {
ret[i] = set[i]
}
copy(ret, set)
return ret
}