Skip to content

Commit 1834398

Browse files
committed
Golint fixes
1 parent 699203d commit 1834398

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

protocol/funscript/functions.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package funscript
22

33
import (
4-
"errors"
54
"math"
65
"time"
76
)
87

9-
var ErrOutOfRange = errors.New("out of range")
10-
118
// Speed returns the speed (in percent) to move the given distance (in percent)
129
// in the given duration.
1310
func Speed(dist int, dur time.Duration) (speed int) {

protocol/kiiroo/loader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ onyx=1.00,4;2.50,1;8.12,3` + "\r\r" + `
4040
}
4141

4242
func TestLoadJSON(t *testing.T) {
43-
var inputJson = []string{`{
43+
var inputJSON = []string{`{
4444
"text": "{1.00:4,2.50:1}"
4545
}`,
4646
`{
4747
"text": " {1.00:4,2.50:1}"
4848
}`,
4949
`{"subs":{"text":" {1.00:4,2.50:1}"}}`,
5050
}
51-
for i, c := range inputJson {
51+
for i, c := range inputJSON {
5252
p, err := LoadJSON(bytes.NewBufferString(c))
5353
if err != nil {
5454
t.Errorf("case %d: %v", i, err)

0 commit comments

Comments
 (0)