diff --git a/cmd/restic/cmd_backup_integration_test.go b/cmd/restic/cmd_backup_integration_test.go index 5dee23f17..3af16a2be 100644 --- a/cmd/restic/cmd_backup_integration_test.go +++ b/cmd/restic/cmd_backup_integration_test.go @@ -205,7 +205,7 @@ func TestBackupNonExistingFile(t *testing.T) { testSetupBackupData(t, env) - withRestoreGlobalOptions(func() error { + _ = withRestoreGlobalOptions(func() error { globalOptions.stderr = io.Discard p := filepath.Join(env.testdata, "0", "0", "9")