chore: solving variable shadows
This commit is contained in:
parent
9f216e21ac
commit
9416751545
@ -276,8 +276,8 @@ func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func calculateImageResolution(fs afero.Fs, path string) (*ImageResolution, error) {
|
func calculateImageResolution(fs afero.Fs, filepath string) (*ImageResolution, error) {
|
||||||
file, err := fs.Open(path)
|
file, err := fs.Open(filepath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user