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/lazy
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-02 15:23:25 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-03 15:12:58 +0300
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /lazy
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'lazy')
-rw-r--r--lazy/init.go2
-rw-r--r--lazy/init_test.go4
-rw-r--r--lazy/once.go1
3 files changed, 0 insertions, 7 deletions
diff --git a/lazy/init.go b/lazy/init.go
index 7f6c5b08c..e2e70072e 100644
--- a/lazy/init.go
+++ b/lazy/init.go
@@ -111,7 +111,6 @@ func (ini *Init) Do() (interface{}, error) {
ini.wait()
return ini.out, ini.err
-
}
// TODO(bep) investigate if we can use sync.Cond for this.
@@ -189,7 +188,6 @@ func (ini *Init) withTimeout(timeout time.Duration, f func(ctx context.Context)
case ve := <-c:
return ve.v, ve.err
}
-
}
type verr struct {
diff --git a/lazy/init_test.go b/lazy/init_test.go
index 772081b56..2051f6b1a 100644
--- a/lazy/init_test.go
+++ b/lazy/init_test.go
@@ -98,7 +98,6 @@ func TestInit(t *testing.T) {
}
_, err = branch1_2.Do()
c.Assert(err, qt.IsNil)
-
}(i)
wg.Wait()
@@ -106,7 +105,6 @@ func TestInit(t *testing.T) {
c.Assert(result, qt.Equals, "root(1)|root(2)|branch_1|branch_1_1|branch_1_2|branch_1_2_1|")
}
-
}
func TestInitAddWithTimeout(t *testing.T) {
@@ -142,7 +140,6 @@ func TestInitAddWithTimeoutTimeout(t *testing.T) {
c.Assert(err.Error(), qt.Contains, "timed out")
time.Sleep(1 * time.Second)
-
}
func TestInitAddWithTimeoutError(t *testing.T) {
@@ -204,7 +201,6 @@ func TestInitBranchOrder(t *testing.T) {
// V1 is A
ab := state.V1 + "B"
state.Add2(ab)
-
}))
}
diff --git a/lazy/once.go b/lazy/once.go
index c434bfa0b..bdce12c33 100644
--- a/lazy/once.go
+++ b/lazy/once.go
@@ -51,7 +51,6 @@ func (t *onceMore) Do(f func()) {
}
defer atomic.StoreUint32(&t.done, 1)
f()
-
}
func (t *onceMore) InProgress() bool {