Skip to content

Commit

Permalink
add better comments and errors [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
andefined committed Apr 26, 2021
1 parent 02019c4 commit 4d72986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plagiarism.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (p *Detector) DetectWithStrings(source, target string) error {
func (p *Detector) DetectWithStopWords(source, target []string) error {
// check if any of source or target stopwords list is an empty string array and return an error
if len(source) < 1 || len(target) < 1 {
return fmt.Errorf("both, source and target list cannot be empty")
return fmt.Errorf("both, source and target stopwords list cannot be empty")
}

// assign detector values
Expand Down

0 comments on commit 4d72986

Please sign in to comment.