Don't shadow err

This commit is contained in:
Calle Pettersson 2019-01-20 12:56:52 +01:00 committed by Calle Pettersson
parent e04d3f414d
commit 9daa8c8775
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ fileLoop:
}
var parser expfmt.TextParser
r, encoding := utfbom.Skip(carriageReturnFilteringReader{r: file})
if err := checkBOM(encoding); err != nil {
if err = checkBOM(encoding); err != nil {
log.Errorf("Invalid file encoding detected in %s: %s - file must be UTF8", path, err.Error())
error = 1.0
continue