Skip to content

Commit 0e23567

Browse files
committed
refactor: use default location when dicpath is not set
1 parent e0a5750 commit 0e23567

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/check/spelling.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ func makeSpeller(s *Spelling, cfg *core.Config, rulePath string) (*spell.Checker
249249
if !found {
250250
return nil, errors.New("unable to resolve dicpath")
251251
}
252+
} else {
253+
options = append(options, spell.WithPath(
254+
filepath.Join(cfg.StylesPath(), core.DictDir)))
252255
}
253256

254257
if len(s.Dictionaries) > 0 {

0 commit comments

Comments
 (0)