Minor improvements
This commit is contained in:
1 parent
77ad91a297
commit
4655e74c2a
2 files changed
+10
-5
No files matched your search
+1
-2
@@ -76,9 +76,8 @@ func Load(configFile string) error {
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return ErrConfigFileNotFound
|
||||
} else {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
}
|
||||
config = cfg
|
||||
return nil
|
||||
|
||||
+9
-3
@@ -35,10 +35,16 @@ const (
|
||||
// Values that could replace the placeholder: true, false
|
||||
ConnectedPlaceHolder = "[CONNECTED]"
|
||||
|
||||
LengthFunctionPrefix = "len("
|
||||
PatternFunctionPrefix = "pat("
|
||||
FunctionSuffix = ")"
|
||||
// LengthFunctionPrefix is the prefix for the length function
|
||||
LengthFunctionPrefix = "len("
|
||||
|
||||
// LengthFunctionPrefix is the prefix for the pattern function
|
||||
PatternFunctionPrefix = "pat("
|
||||
|
||||
// LengthFunctionPrefix is the suffix for all functions
|
||||
FunctionSuffix = ")"
|
||||
|
||||
// InvalidConditionElementSuffix is the suffix that will be appended to an invalid condition
|
||||
InvalidConditionElementSuffix = "(INVALID)"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user