Run gofmt -s on source files

This commit is contained in:
Andreas Deininger 2023-03-10 20:18:41 +01:00 committed by Bjørn Erik Pedersen
parent b6f44aaf1a
commit d55af2abf0
8 changed files with 7 additions and 9 deletions

View file

@ -124,7 +124,7 @@ Hugo stands on the shoulder of many great open source libraries.
If you run `hugo env -v` you will get a complete and up to date list.
In Hugo 0.110.2 that list is, in lexical order:
In Hugo 0.111.2 that list is, in lexical order:
```
cloud.google.com/go/compute="v1.6.1"

View file

@ -62,7 +62,7 @@ func (p Params) IsZero() bool {
return false
}
for k, _ := range p {
for k := range p {
return k == mergeStrategyKey
}

View file

@ -23,7 +23,7 @@ import (
// Additional features are:
// * it can be reset, so the action can be repeated if needed
// * it has methods to check if it's done or in progress
//
type onceMore struct {
mu sync.Mutex
lock uint32

View file

@ -30,8 +30,7 @@ const slash = "/"
//
// The big motivating behind this is to have only one source of truth for URLs,
// and by that also get rid of most of the fragile string parsing/encoding etc.
//
//
type TargetPathDescriptor struct {
PathSpec *helpers.PathSpec

View file

@ -84,7 +84,6 @@ post/doesnotexist.html: false
`)
}
// See #10774
func TestPageFunctionExists(t *testing.T) {
t.Parallel()

View file

@ -268,7 +268,7 @@ func (item *itemToWatch) checkForChanges() ([]fsnotify.Event, error) {
dirOp := checkChange(item.left.FileInfo, item.right.FileInfo)
if dirOp != 0 {
evs := []fsnotify.Event{fsnotify.Event{Op: dirOp, Name: item.filename}}
evs := []fsnotify.Event{{Op: dirOp, Name: item.filename}}
return evs, nil
}