Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjennings committed Feb 14, 2024
1 parent 04c50a3 commit bfb028e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ var restoreCmd = &cobra.Command{
fmt.Println(err)
os.Exit(1)
}
return
},
}

Expand Down
3 changes: 3 additions & 0 deletions internal/mygit/mygit.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ func Restore(path string) error {
return err
}
_, err = io.Copy(fh, reader)
if err != nil {
return err
}
if err := fh.Close(); err != nil {
return err
}
Expand Down

0 comments on commit bfb028e

Please sign in to comment.