mirror of
https://github.com/restic/restic.git
synced 2025-08-22 07:07:26 +00:00
errcheck: Add error checks
Most added checks are straight forward.
This commit is contained in:
@@ -301,7 +301,11 @@ var (
|
||||
func initBenchmarkIndexJSON() {
|
||||
idx, _ := createRandomIndex(rand.New(rand.NewSource(0)), 200000)
|
||||
var buf bytes.Buffer
|
||||
idx.Encode(&buf)
|
||||
err := idx.Encode(&buf)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
benchmarkIndexJSON = buf.Bytes()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user