Skip to content

Commit

Permalink
fix vet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hujun-open committed Aug 17, 2024
1 parent dc0db51 commit 83cbc03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ L:
enc := gob.NewEncoder(buf)
err := enc.Encode(leaseMap)
if err != nil {
log.Fatalf("failed to encode, %w", err)
log.Fatalf("failed to encode, %v", err)
}
err = os.WriteFile(outfile, buf.Bytes(), 0644)
if err != nil {
log.Fatalf("failed to write to file %v, %w", outfile, err)
log.Fatalf("failed to write to file %v, %v", outfile, err)
}
common.MyLog("lease saved to %v", outfile)
return
Expand Down

0 comments on commit 83cbc03

Please sign in to comment.