config: better naming and some minor optimizations

This commit is contained in:
nadoo committed 2020-09-26 23:34:26 +08:00
1 parent 2d71facf9b
commit 72a2782395
9 files changed
+63 -62

No files matched your search

-2
View File
@@ -1,7 +1,6 @@
package rule
import (
"fmt"
"io/ioutil"
"os"
"strings"
@@ -62,7 +61,6 @@ func NewConfFromFile(ruleFile string) (*Config, error) {
err := f.Parse()
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
return nil, err
}