chore: solving variable shadows

This commit is contained in:
MAERYO 2023-11-15 23:27:30 +09:00
parent 9f216e21ac
commit 9416751545

View File

@ -276,8 +276,8 @@ func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error {
return nil
}
func calculateImageResolution(fs afero.Fs, path string) (*ImageResolution, error) {
file, err := fs.Open(path)
func calculateImageResolution(fs afero.Fs, filepath string) (*ImageResolution, error) {
file, err := fs.Open(filepath)
if err != nil {
return nil, err
}