From 5e088f32ca0cf43cf5811b07e6e8d224fb0d8f1d Mon Sep 17 00:00:00 2001 From: sentriz Date: Tue, 9 Jul 2019 21:52:08 +0100 Subject: [PATCH] update scanner comments --- scanner/scanner.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scanner/scanner.go b/scanner/scanner.go index f650a53..b6de27a 100644 --- a/scanner/scanner.go +++ b/scanner/scanner.go @@ -226,10 +226,9 @@ func (s *Scanner) callbackPost(fullPath string, info *godirwalk.Dirent) error { return nil } -// decoded converts a string to it's latin equivalent. it -// will be used by the model's *UDec fields, and is only set -// if it differs from the original. -// the fields are used for searching +// decoded converts a string to it's latin equivalent. it will +// be used by the model's *UDec fields, and is only set if it +// differs from the original. the fields are used for searching func decoded(in string) string { result := unidecode.Unidecode(in) if result == in {