Skip to content

Commit

Permalink
refactor: use default location when dicpath is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Jan 22, 2025
1 parent e0a5750 commit 0e23567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/check/spelling.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func makeSpeller(s *Spelling, cfg *core.Config, rulePath string) (*spell.Checker
if !found {
return nil, errors.New("unable to resolve dicpath")
}
} else {
options = append(options, spell.WithPath(
filepath.Join(cfg.StylesPath(), core.DictDir)))
}

if len(s.Dictionaries) > 0 {
Expand Down

0 comments on commit 0e23567

Please sign in to comment.