fix review
This commit is contained in:
parent
9f817676a8
commit
3b458060ef
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package exprhelpers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
@ -68,7 +69,7 @@ func FileInit(fileFolder string, filename string, fileType string) error {
|
||||||
case "string":
|
case "string":
|
||||||
dataFile[filename] = append(dataFile[filename], scanner.Text())
|
dataFile[filename] = append(dataFile[filename], scanner.Text())
|
||||||
default:
|
default:
|
||||||
log.Errorf("unknown data type '%s' for : '%s'", fileType, filename)
|
return fmt.Errorf("unknown data type '%s' for : '%s'", fileType, filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue