Merge a few variable declaration and initializations

This commit is contained in:
Michael Eischer committed 2020-09-05 10:05:34 +02:00
1 parent 337725c354
commit 37113282ca
4 files changed
+5 -11

No files matched your search

+1 -2
View File
@@ -251,9 +251,8 @@ func PrintSnapshots(stdout io.Writer, list restic.Snapshots, reasons []restic.Ke
// Prints nothing, if we did not group at all.
func PrintSnapshotGroupHeader(stdout io.Writer, groupKeyJSON string) error {
var key restic.SnapshotGroupKey
var err error
err = json.Unmarshal([]byte(groupKeyJSON), &key)
err := json.Unmarshal([]byte(groupKeyJSON), &key)
if err != nil {
return err
}