From e6577041f12bd2fc024cb64332dcecd4d4700d4e Mon Sep 17 00:00:00 2001 From: Kloon ImKloon Date: Sat, 30 Mar 2024 14:08:52 +0100 Subject: [PATCH] Fix go lint issues --- files/file.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/file.go b/files/file.go index dad060bb..cffccf66 100644 --- a/files/file.go +++ b/files/file.go @@ -284,8 +284,8 @@ func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error { return nil } -func calculateImageResolution(fs afero.Fs, filePath string) (*ImageResolution, error) { - file, err := fs.Open(filePath) +func calculateImageResolution(fs_ afero.Fs, filePath string) (*ImageResolution, error) { + file, err := fs_.Open(filePath) if err != nil { return nil, err } @@ -362,7 +362,7 @@ func (i *FileInfo) detectSubtitles() { } } -func (i *FileInfo) loadSubtitles(subsPath string, baseName string, recursive bool) { +func (i *FileInfo) loadSubtitles(subsPath, baseName string, recursive bool) { dir, err := afero.ReadDir(i.Fs, subsPath) if err == nil { for _, f := range dir { @@ -385,8 +385,8 @@ func isSubtitleMatch(f fs.FileInfo, baseName string) bool { IsSupportedSubtitle(f.Name()) } -func (i *FileInfo) addSubtitle(path string) { - i.Subtitles = append(i.Subtitles, path) +func (i *FileInfo) addSubtitle(path_ string) { + i.Subtitles = append(i.Subtitles, path_) } func (i *FileInfo) readListing(checker rules.Checker, readHeader bool) error {