mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-13 05:31:02 +08:00
small refactor according to go vet check results
This commit is contained in:
@@ -57,7 +57,7 @@ func NewStopWord() *StopWord {
|
||||
return s
|
||||
}
|
||||
|
||||
func (s StopWord) IsStopWord(word string) bool {
|
||||
func (s *StopWord) IsStopWord(word string) bool {
|
||||
s.RLock()
|
||||
_, ok := s.stopWordMap[word]
|
||||
s.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user