Skip to content

Commit edb1783

Browse files
committed
Fix lints.
1 parent 0b406e4 commit edb1783

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

actor_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,21 @@ func TestActorAsk(t *testing.T) {
111111
timeout = 10 * time.Millisecond
112112

113113
// Normal cases
114-
actual = 0
115114
expectedInt = 10
116115
actual, _ = AskNewGenerics[interface{}, int](1).AskOnce(actorRoot, nil)
117116
assert.Equal(t, expectedInt, actual)
118117
// Ask with Timeout
119-
actual = 0
120118
expectedInt = 20
121119
actual, _ = AskNewGenerics[interface{}, int](2).AskOnce(actorRoot, &timeout)
122120
assert.Equal(t, expectedInt, actual)
123121
// Ask channel
124-
actual = 0
125122
expectedInt = 30
126123
ch := AskNewGenerics[interface{}, int](3).AskChannel(actorRoot)
127124
actual = <-*ch
128125
close(*ch)
129126
assert.Equal(t, expectedInt, actual)
130127

131128
// Timeout cases
132-
actual = 9999
133129
expectedInt = 0
134130
actual, err = AskNewGenerics[interface{}, int](-1).AskOnce(actorRoot, &timeout)
135131
assert.Equal(t, expectedInt, actual)

cor_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ func logMessage(args ...interface{}) {
1616
}
1717

1818
func TestCorYield(t *testing.T) {
19-
var expectedInt int
20-
actualInt := 0
19+
var expectedInt, actualInt int
2120
var testee *CorDef[interface{}]
2221
var wg sync.WaitGroup
2322

fp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ func Flatten[T any](list ...[]T) []T {
13601360
return Concat(result, list...)
13611361
}
13621362

1363-
// Prepend returns the slice with the additional element added to the beggining
1363+
// Prepend returns the slice with the additional element added to the beginning
13641364
func Prepend[T any](element T, list []T) []T {
13651365
return append([]T{element}, list...)
13661366
}

publisher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
func TestPublisher(t *testing.T) {
1010
var s *Subscription[interface{}]
11+
var p2 *PublisherDef[interface{}]
1112
p := Publisher.New()
12-
p2 := p
1313

1414
actual := 0
1515
expected := 0

0 commit comments

Comments
 (0)