mirror of
https://github.com/restic/restic.git
synced 2025-12-24 00:29:39 -05:00
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.
|
||
|---|---|---|
| .. | ||
| backend.go | ||
| backend_test.go | ||
| cache.go | ||
| dir.go | ||
| dir_test.go | ||
| file.go | ||
| file_test.go | ||
| testing.go | ||