mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
resources: Fix typos in error message and variables
This commit is contained in:
parent
b0b1b76dc9
commit
891b2918d2
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue