all: Minor cleanups

if x { return true } return false => return x

	fmt.Sprintf("%v", x) => fmt.Sprint(x) or x.String()

The fmt.Sprintf idiom is still used in the SecretString tests, where it
serves security hardening.
This commit is contained in:
greatroar 2022-10-16 10:30:59 +02:00
parent d03460010f
commit 22147e1e02
5 changed files with 6 additions and 10 deletions

View file

@ -217,7 +217,7 @@ func TestTestWalkFiles(t *testing.T) {
return err
}
got[p] = fmt.Sprintf("%v", item)
got[p] = fmt.Sprint(item)
return nil
})