mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-26 02:52:31 -07:00
Compress if statement
This commit is contained in:
@@ -195,13 +195,11 @@ func setupTimeouts() {
|
|||||||
|
|
||||||
func ConfigLoad() {
|
func ConfigLoad() {
|
||||||
// configuration parsing
|
// configuration parsing
|
||||||
err := ff.Parse(flagset, os.Args[1:],
|
if err := ff.Parse(flagset, os.Args[1:],
|
||||||
ff.WithEnvVarPrefix("smtprelay"),
|
ff.WithEnvVarPrefix("smtprelay"),
|
||||||
ff.WithConfigFileFlag("config"),
|
ff.WithConfigFileFlag("config"),
|
||||||
ff.WithConfigFileParser(IniParser),
|
ff.WithConfigFileParser(IniParser),
|
||||||
)
|
); err != nil {
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user