mirror of
https://github.com/restic/restic.git
synced 2026-11-23 05:42:39 +00:00
vss: Change ErrorHandler signature
We don't need `error` here: the only existing implementation of `ErrorHandler` always call `Backup.Error` and all implementations of `Backup.Error` always return nil.
This commit is contained in:
1 parent
9d3d915e2c
commit
88c509e3e9
3 files changed
+7
-11
No files matched your search
@@ -556,8 +556,8 @@ func runBackup(ctx context.Context, opts BackupOptions, gopts GlobalOptions, ter
|
||||
return err
|
||||
}
|
||||
|
||||
errorHandler := func(item string, err error) error {
|
||||
return progressReporter.Error(item, err)
|
||||
errorHandler := func(item string, err error) {
|
||||
_ = progressReporter.Error(item, err)
|
||||
}
|
||||
|
||||
messageHandler := func(msg string, args ...interface{}) {
|
||||
|
||||
Reference in new issue
Block a user