Merge a few variable declaration and initializations

This commit is contained in:
Michael Eischer
2020-09-05 10:05:34 +02:00
parent 337725c354
commit 37113282ca
4 changed files with 5 additions and 11 deletions
+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
}