mirror of
https://github.com/restic/restic.git
synced 2025-12-12 05:11:46 +00:00
Fix linter errors (except for tests)
This commit is contained in:
@@ -41,7 +41,7 @@ type trackFile struct {
|
||||
|
||||
func newTrackFile(stack []byte, filename string, file File) *trackFile {
|
||||
f := &trackFile{file}
|
||||
runtime.SetFinalizer(f, func(f *trackFile) {
|
||||
runtime.SetFinalizer(f, func(_ *trackFile) {
|
||||
fmt.Fprintf(os.Stderr, "file %s not closed\n\nStacktrack:\n%s\n", filename, stack)
|
||||
panic("file " + filename + " not closed")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user