restic/internal/repository
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
..
testdata Moves files 2017-07-23 14:19:13 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
index_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
index.go Reuse buffer in worker functions 2019-04-13 13:38:39 +02:00
key.go Allow multiple retries for interactive password input 2019-06-13 20:11:02 +08:00
master_index_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
master_index.go debug: Remove manual Str() call Log() 2018-01-25 20:49:41 +01:00
packer_manager_test.go Correct ineffassign 2018-10-19 16:58:14 -04:00
packer_manager.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
pool.go repository: Improve buffer pooling 2018-04-22 11:37:05 +02:00
repack_test.go Merge pull request #1549 from MJDSys/more_index_lookup_avoids 2018-01-24 20:53:30 +01:00
repack.go DownloadAndHash: Check error returned by Load() 2018-10-28 21:28:56 +01:00
repository_test.go Add []byte to repo.LoadAndDecrypt and utils.LoadAll 2019-04-13 13:38:39 +02:00
repository.go remove unnecessary error return 2020-01-27 18:28:21 +03:00
testing.go Add key hinting (#2097) 2018-11-25 09:13:18 -05:00
worker_group.go remove unnecessary error return 2020-01-27 18:28:21 +03:00