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
path: root/tpl/math
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-03-24 12:11:16 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-03-24 18:14:51 +0300
commitb5f39d23b86f9cb83c51da9fe4abb4c19c01c3b7 (patch)
treecf23180dc07698391cf47c2fe525755417729020 /tpl/math
parent3011f36c27ecde309325e6c75ca377f4f87fa97a (diff)
all: Apply staticcheck recommendations
Diffstat (limited to 'tpl/math')
-rw-r--r--tpl/math/math.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/math/math.go b/tpl/math/math.go
index 0bc813dce..08be42b47 100644
--- a/tpl/math/math.go
+++ b/tpl/math/math.go
@@ -78,11 +78,11 @@ func (ns *Namespace) Mod(a, b interface{}) (int64, error) {
bi, errb := cast.ToInt64E(b)
if erra != nil || errb != nil {
- return 0, errors.New("Modulo operator can't be used with non integer value")
+ return 0, errors.New("modulo operator can't be used with non integer value")
}
if bi == 0 {
- return 0, errors.New("The number can't be divided by zero at modulo operation")
+ return 0, errors.New("the number can't be divided by zero at modulo operation")
}
return ai % bi, nil