resources: Fix spelling in method name

This commit is contained in:
Bjørn Erik Pedersen 2023-07-30 21:12:33 +02:00
parent d297c8e1b5
commit be8e2de597
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ func (c *ImageCache) getOrCreate(
rp := img.getResourcePaths() rp := img.getResourcePaths()
rp.relTargetDirFile.file = relTarget.file rp.relTargetDirFile.file = relTarget.file
img.setSourceFilename(info.Name) img.setSourceFilename(info.Name)
img.setSourfeFilenameIsHash(true) img.setSourceFilenameIsHash(true)
img.setMediaType(conf.TargetFormat.MediaType()) img.setMediaType(conf.TargetFormat.MediaType())
return img.InitConfig(r) return img.InitConfig(r)

View file

@ -215,7 +215,7 @@ func (d dirFile) path() string {
type fileInfo interface { type fileInfo interface {
getSourceFilename() string getSourceFilename() string
setSourceFilename(string) setSourceFilename(string)
setSourfeFilenameIsHash(bool) setSourceFilenameIsHash(bool)
setSourceFs(afero.Fs) setSourceFs(afero.Fs)
getFileInfo() hugofs.FileMetaInfo getFileInfo() hugofs.FileMetaInfo
hash() (string, error) hash() (string, error)
@ -645,7 +645,7 @@ func (fi *resourceFileInfo) setSourceFilename(s string) {
fi.sourceFilename = s fi.sourceFilename = s
} }
func (fi *resourceFileInfo) setSourfeFilenameIsHash(b bool) { func (fi *resourceFileInfo) setSourceFilenameIsHash(b bool) {
fi.sourceFilenameIsHash = b fi.sourceFilenameIsHash = b
} }