Minor improvements
This commit is contained in:
parent
77ad91a297
commit
4655e74c2a
@ -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
|
||||
|
@ -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)"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user