resources: Fix typos in error message and variables - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 891b2918d208903ec5ab2c5d7c7ea1b9dc8c61f2
DIR parent b0b1b76dc9c7edad15924785d01684e36f3e6cdb
HTML Author: Oleksandr Redko <oleksandr.red+github@gmail.com>
Date: Sat, 18 Mar 2023 13:01:38 +0200
resources: Fix typos in error message and variables
Diffstat:
M resources/image_test.go | 10 +++++-----
M resources/resource_transformers/te… | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
DIR diff --git a/resources/image_test.go b/resources/image_test.go
@@ -235,20 +235,20 @@ func TestImagePermalinkPublishOrder(t *testing.T) {
assertImageFile(c, spec.PublishFs, "a/sunset.jpg", 900, 562)
}
- orignal := fetchImageForSpec(spec, c, "sunset.jpg")
- c.Assert(orignal, qt.Not(qt.IsNil))
+ original := fetchImageForSpec(spec, c, "sunset.jpg")
+ c.Assert(original, qt.Not(qt.IsNil))
if checkOriginalFirst {
- check2(orignal)
+ check2(original)
}
- resized, err := orignal.Resize("100x50")
+ resized, err := original.Resize("100x50")
c.Assert(err, qt.IsNil)
check1(resized.(images.ImageResource))
if !checkOriginalFirst {
- check2(orignal)
+ check2(original)
}
})
}
DIR diff --git a/resources/resource_transformers/templates/execute_as_template.go b/resources/resource_transformers/templates/execute_as_template.go
@@ -34,7 +34,7 @@ type Client struct {
// New creates a new Client with the given specification.
func New(rs *resources.Spec, t tpl.TemplatesProvider) *Client {
if rs == nil {
- panic("must provice a resource Spec")
+ panic("must provide a resource Spec")
}
if t == nil {
panic("must provide a template provider")