mirror of
https://github.com/restic/restic.git
synced 2025-08-21 10:57:55 +00:00
errcheck: Add error checks
Most added checks are straight forward.
This commit is contained in:
@@ -23,7 +23,9 @@ func TestForeground(t *testing.T) {
|
||||
|
||||
bg, err := backend.StartForeground(cmd)
|
||||
rtest.OK(t, err)
|
||||
defer cmd.Wait()
|
||||
defer func() {
|
||||
rtest.OK(t, cmd.Wait())
|
||||
}()
|
||||
|
||||
err = bg()
|
||||
rtest.OK(t, err)
|
||||
|
Reference in New Issue
Block a user