File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ type Banlist struct {
28
28
path string
29
29
}
30
30
31
- func New (log logrus.FieldLogger , path string ) * Banlist {
32
- bl := newBanlist (log , path )
31
+ func New (log logrus.FieldLogger , filepath string ) * Banlist {
32
+ bl := newBanlist (log , filepath )
33
33
bl .listen ()
34
34
bl .runUpdate ()
35
35
return bl
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func TestBanlistNoPaths(t *testing.T) {
39
39
Domains : []string {"something.com" },
40
40
})
41
41
42
- assert .Len (t , bl .urls (), 0 )
42
+ assert .Empty (t , bl .urls ())
43
43
domains := bl .domains ()
44
44
assert .Len (t , domains , 1 )
45
45
_ , ok := domains ["something.com" ]
@@ -56,7 +56,7 @@ func TestBanlistNoDomains(t *testing.T) {
56
56
_ , ok := urls ["something.com/path/to/thing" ]
57
57
assert .True (t , ok )
58
58
59
- assert .Len (t , bl .domains (), 0 )
59
+ assert .Empty (t , bl .domains ())
60
60
}
61
61
func TestBanlistBanning (t * testing.T ) {
62
62
bl := testList (t , & Config {
You can’t perform that action at this time.
0 commit comments