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/sha256"
"crypto/sha512" "crypto/sha512"
"encoding/hex" "encoding/hex"
"github.com/spf13/afero"
"hash" "hash"
"image" "image"
"io" "io"
@ -19,6 +18,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/filebrowser/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/filebrowser/filebrowser/v2/rules"
) )
@ -276,8 +277,7 @@ func (i *FileInfo) detectType(modify, saveContent, readHeader bool) error {
return nil return nil
} }
func calculateImageResolution(fs afero.Fs, filepath string) (*ImageResolution, error) { func calculateImageResolution(fs afero.Fs, filePath string) (*ImageResolution, error) {
file, err := fs.Open(filepath)
if err != nil { if err != nil {
return nil, err return nil, err
} }