Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <ianmlewis@gmail.com>
  • Loading branch information
ianlewis committed Nov 17, 2024
1 parent 2b70fcd commit 385dc02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ linters-settings:

# Dependencies.
- "github.com/google/subcommands"
- "github.com/ianlewis/go-dictzip"
- "github.com/k3a/html2text"
- "github.com/pebbe/dictzip"
- "github.com/rodaine/table"
deny:
- pkg: "github.com/ianlewis/go-stardict/internal/testutils"
Expand All @@ -117,8 +117,8 @@ linters-settings:
# Dependencies.
- "github.com/google/go-cmp/cmp"
- "github.com/google/subcommands"
- "github.com/ianlewis/go-dictzip"
- "github.com/k3a/html2text"
- "github.com/pebbe/dictzip"
- "github.com/rodaine/table"
deny:
- pkg: "reflect"
Expand Down
3 changes: 2 additions & 1 deletion internal/testutil/dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func MakeTempDict(t *testing.T, words []*dict.Word, opts *MakeDictOptions) *os.F
d := MakeDict(t, words, opts.SameTypeSequence)

if opts.DictZip {
z, err := dictzip.NewWriter(f)
var z *dictzip.Writer
z, err = dictzip.NewWriter(f)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 385dc02

Please # to comment.