2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00
restic/internal
Alexander Bruyako da48b925ff remove unnecessary error return
I was running "golangci-lint" and found this two warnings

internal/checker/checker.go:135:18: (*Checker).LoadIndex$3 - result 0 (error) is always nil (unparam)
        final := func() error {
                        ^
internal/repository/repository.go:457:18: (*Repository).LoadIndex$3 - result 0 (error) is always nil (unparam)
        final := func() error {
                        ^

It turns out that these functions are used only in "RunWorkers(...)",
which is used only two times in whole project right after this "final"
functions.
And because these "final" functions always return "nil", I've
descided, that it would be better to remove requriments for "final" func
to return error to avoid magick "return nil" at their end.
2020-01-27 18:28:21 +03:00
..
archiver Merge pull request #2373 from vrusinov/issue-2372 2020-01-05 21:07:34 +01:00
backend internal: backend: sftp: support user@domain parsing as user 2019-12-19 13:15:37 +01:00
cache Add support for $RESTIC_CACHE_DIR 2019-09-26 15:59:56 -07:00
checker remove unnecessary error return 2020-01-27 18:28:21 +03:00
crypto crypto: Rework Seal/Open to use sliceForAppend 2017-11-01 10:30:40 +01:00
debug Remove build tag release 2018-10-11 19:40:38 +02:00
errors backup: Improve error message for invalid pattern 2018-10-03 11:12:51 +02:00
filter filter: Allow double wildcard in ChildMatch 2018-06-09 23:18:13 +02:00
fs simplified string sorting by using a more suitable function 2019-06-30 23:20:32 +03:00
fuse Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
hashing Moves files 2017-07-23 14:19:13 +02:00
index index.New: Test various error conditions 2018-10-28 14:02:31 +01:00
limiter rclone: Respect bandwith limits 2018-05-22 20:48:17 +02:00
migrations clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
mock mock: Remove unused repository type 2019-04-13 13:38:39 +02:00
options improved slice copying 2019-06-30 23:56:36 +03:00
pack backend: Improve Save() 2018-03-03 15:49:44 +01:00
repository remove unnecessary error return 2020-01-27 18:28:21 +03:00
restic fix typos 2019-12-21 21:00:28 -05:00
restorer Fix rare 'file already closed' during restore 2019-03-16 17:01:20 +01:00
selfupdate self-update: Don't cancel download after 30 seconds 2019-02-23 11:15:18 +01:00
test Add test.Helper, also works with Go 1.8 2018-04-22 11:37:05 +02:00
textfile Add textfile 2018-05-01 14:38:59 +02:00
ui avoiding unnecessary type conversions 2019-06-30 23:58:00 +03:00
walker walk: Pass parent tree ID to WalkFunc 2018-08-19 23:28:04 +02:00