Compress if statement

This commit is contained in:
Bernhard Froehlich
2022-05-23 15:29:03 +00:00
parent c83544bd90
commit 1bf205e7d8

View File

@@ -195,13 +195,11 @@ func setupTimeouts() {
func ConfigLoad() {
// configuration parsing
err := ff.Parse(flagset, os.Args[1:],
if err := ff.Parse(flagset, os.Args[1:],
ff.WithEnvVarPrefix("smtprelay"),
ff.WithConfigFileFlag("config"),
ff.WithConfigFileParser(IniParser),
)
if err != nil {
); err != nil {
os.Exit(1)
}