Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parser/pageparser/pagelexer.go2
-rw-r--r--resources/page/permalinks.go2
-rw-r--r--tpl/images/images_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go
index d010c8152..2da8ebdc3 100644
--- a/parser/pageparser/pagelexer.go
+++ b/parser/pageparser/pagelexer.go
@@ -117,7 +117,7 @@ var (
)
func (l *pageLexer) next() rune {
- if int(l.pos) >= len(l.input) {
+ if l.pos >= len(l.input) {
l.width = 0
return eof
}
diff --git a/resources/page/permalinks.go b/resources/page/permalinks.go
index 59f2da916..e82ee1a4f 100644
--- a/resources/page/permalinks.go
+++ b/resources/page/permalinks.go
@@ -188,7 +188,7 @@ type permalinkExpandError struct {
}
func (pee *permalinkExpandError) Error() string {
- return fmt.Sprintf("error expanding %q: %s", string(pee.pattern), pee.err)
+ return fmt.Sprintf("error expanding %q: %s", pee.pattern, pee.err)
}
var (
diff --git a/tpl/images/images_test.go b/tpl/images/images_test.go
index c9b78ea9a..f2b4a426a 100644
--- a/tpl/images/images_test.go
+++ b/tpl/images/images_test.go
@@ -93,7 +93,7 @@ func TestNSConfig(t *testing.T) {
// check for expected errors early to avoid writing files
if b, ok := test.expect.(bool); ok && !b {
- _, err := ns.Config(interface{}(test.path))
+ _, err := ns.Config(test.path)
require.Error(t, err, errMsg)
continue
}