Skip to content

Commit

Permalink
resources: Fix spelling in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 30, 2023
1 parent d297c8e commit be8e2de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/image_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c *ImageCache) getOrCreate(
rp := img.getResourcePaths()
rp.relTargetDirFile.file = relTarget.file
img.setSourceFilename(info.Name)
img.setSourfeFilenameIsHash(true)
img.setSourceFilenameIsHash(true)
img.setMediaType(conf.TargetFormat.MediaType())

return img.InitConfig(r)
Expand Down
4 changes: 2 additions & 2 deletions resources/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (d dirFile) path() string {
type fileInfo interface {
getSourceFilename() string
setSourceFilename(string)
setSourfeFilenameIsHash(bool)
setSourceFilenameIsHash(bool)
setSourceFs(afero.Fs)
getFileInfo() hugofs.FileMetaInfo
hash() (string, error)
Expand Down Expand Up @@ -645,7 +645,7 @@ func (fi *resourceFileInfo) setSourceFilename(s string) {
fi.sourceFilename = s
}

func (fi *resourceFileInfo) setSourfeFilenameIsHash(b bool) {
func (fi *resourceFileInfo) setSourceFilenameIsHash(b bool) {
fi.sourceFilenameIsHash = b
}

Expand Down

0 comments on commit be8e2de

Please sign in to comment.