Skip to content

Commit

Permalink
repo: fixup linter warnings (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig authored Apr 15, 2023
1 parent 7316630 commit c9c43a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sources/sets.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sources

import (
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -32,7 +31,7 @@ func New(logger output.Logger, cc *agent.CoreConfig) *Sets {
}

// insert individual custom allowable domains
allow.InsertAll(cc.Allows)
allow.InsertSlice(cc.Allows)

// insert file of custom allowable domains
customFile(cc.AllowFile, allow)
Expand All @@ -41,7 +40,7 @@ func New(logger output.Logger, cc *agent.CoreConfig) *Sets {
customDir(cc.AllowDir, allow)

// insert individual custom block domains
block.InsertAll(cc.Blocks)
block.InsertSlice(cc.Blocks)

// insert file of custom block domains
customFile(cc.BlockFile, block)
Expand All @@ -50,7 +49,7 @@ func New(logger output.Logger, cc *agent.CoreConfig) *Sets {
customDir(cc.BlockDir, block)

// insert individual domain sufix block
suffix.InsertAll(cc.Suffix)
suffix.InsertSlice(cc.Suffix)

// insert file of custom domain suffix blocks
customFile(cc.SuffixFile, suffix)
Expand Down Expand Up @@ -140,7 +139,7 @@ func customDir(dirname string, set *set.Set[string]) {
return // nothing to do
}

files, err := ioutil.ReadDir(dirname)
files, err := os.ReadDir(dirname)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit c9c43a5

Please sign in to comment.