Merge a few variable declaration and initializations

This commit is contained in:
Michael Eischer
2020-03-06 23:27:37 +01:00
parent 337725c354
commit 37113282ca
4 changed files with 5 additions and 11 deletions

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
}