Skip to content

Commit

Permalink
CLEANUP/MINOR: global: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuraga committed Dec 5, 2023
1 parent b70f683 commit 0e22b30
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions configuration/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 0e22b30

Please sign in to comment.