diff --git a/configuration/global.go b/configuration/global.go index 880729df..f68d97a9 100644 --- a/configuration/global.go +++ b/configuration/global.go @@ -2295,10 +2295,7 @@ func serializeWurflOptions(p parser.Parser, options *models.GlobalWurflOptions) if err := serializeStringOption(p, "wurfl-patch-file", options.PatchFile); err != nil { return err } - if err := serializeInt64Option(p, "wurfl-cache-size", options.CacheSize); err != nil { - return err - } - return nil + return serializeInt64Option(p, "wurfl-cache-size", options.CacheSize) } func serializeDeviceAtlasOptions(p parser.Parser, options *models.GlobalDeviceAtlasOptions) error { @@ -2314,10 +2311,7 @@ func serializeDeviceAtlasOptions(p parser.Parser, options *models.GlobalDeviceAt if err := serializeStringOption(p, "deviceatlas-separator", options.Separator); err != nil { return err } - if err := serializeStringOption(p, "deviceatlas-properties-cookie", options.PropertiesCookie); err != nil { - return err - } - return nil + return serializeStringOption(p, "deviceatlas-properties-cookie", options.PropertiesCookie) } func serializeFiftyOneDegreesOptions(p parser.Parser, options *models.GlobalFiftyOneDegreesOptions) error { @@ -2333,10 +2327,7 @@ func serializeFiftyOneDegreesOptions(p parser.Parser, options *models.GlobalFift if err := serializeStringOption(p, "51degrees-property-separator", options.PropertySeparator); err != nil { return err } - if err := serializeInt64Option(p, "51degrees-cache-size", options.CacheSize); err != nil { - return err - } - return nil + return serializeInt64Option(p, "51degrees-cache-size", options.CacheSize) } func serializeTuneOptions(p parser.Parser, options *models.GlobalTuneOptions) error { //nolint:gocognit,gocyclo,cyclop,maintidx