chore: change filepath variable to camel case

This commit is contained in:
MAERYO 2023-11-15 23:32:55 +09:00
parent 9416751545
commit aec160fe01

View File

@ -6,7 +6,6 @@ import (
"crypto/sha256"
"crypto/sha512"
"encoding/hex"
"github.com/spf13/afero"
"hash"
"image"
"io"
@ -19,6 +18,8 @@ import (
"strings"
"time"
"github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/rules"
)
@ -276,8 +277,7 @@ 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) {
if err != nil {
return nil, err
}