Skip to content

Commit

Permalink
BUILD/MINOR: use 1.55.2 golangci linter
Browse files Browse the repository at this point in the history
  • Loading branch information
oktalz committed Dec 1, 2023
1 parent 3b9aa03 commit 7940c5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PROJECT_PATH=${PWD}
DOCKER_HAPROXY_VERSION?=2.8
SWAGGER_VERSION=v0.30.2
GO_VERSION:=${shell go mod edit -json | jq -r .Go}
GOLANGCI_LINT_VERSION=1.54.2
GOLANGCI_LINT_VERSION=1.55.2

.PHONY: test
test:
Expand Down
4 changes: 2 additions & 2 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@ func (s *SectionObject) errorloc302(field reflect.Value) error {
}

e := &types.ErrorLoc302{
Code: fmt.Sprintf("%d", *errorLoc.Code),
Code: strconv.FormatInt(*errorLoc.Code, 10),
URL: *errorLoc.URL,
}
return s.set("errorloc302", e)
Expand All @@ -2732,7 +2732,7 @@ func (s *SectionObject) errorloc303(field reflect.Value) error {
}

e := &types.ErrorLoc303{
Code: fmt.Sprintf("%d", *errorLoc.Code),
Code: strconv.FormatInt(*errorLoc.Code, 10),
URL: *errorLoc.URL,
}

Expand Down
3 changes: 0 additions & 3 deletions configuration/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,6 @@ func serializeWurflOptions(p parser.Parser, options *models.GlobalWurflOptions)
if err := serializeStringOption(p, "wurfl-patch-file", options.PatchFile); err != nil {
return err
}
//nolint:revive
if err := serializeInt64Option(p, "wurfl-cache-size", options.CacheSize); err != nil {
return err
}
Expand All @@ -2315,7 +2314,6 @@ func serializeDeviceAtlasOptions(p parser.Parser, options *models.GlobalDeviceAt
if err := serializeStringOption(p, "deviceatlas-separator", options.Separator); err != nil {
return err
}
//nolint:revive
if err := serializeStringOption(p, "deviceatlas-properties-cookie", options.PropertiesCookie); err != nil {
return err
}
Expand All @@ -2335,7 +2333,6 @@ func serializeFiftyOneDegreesOptions(p parser.Parser, options *models.GlobalFift
if err := serializeStringOption(p, "51degrees-property-separator", options.PropertySeparator); err != nil {
return err
}
//nolint:revive
if err := serializeInt64Option(p, "51degrees-cache-size", options.CacheSize); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion configuration/peer_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func SerializePeerEntry(pe models.PeerEntry) types.Peer {
Port: *pe.Port,
}
if pe.Shard != 0 {
peer.Shard = fmt.Sprintf("%d", pe.Shard)
peer.Shard = strconv.FormatInt(pe.Shard, 10)
}
return peer
}
Expand Down
2 changes: 1 addition & 1 deletion configuration/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func SerializeRingSection(p parser.Parser, data *models.Ring) error { //nolint:g
return err
}
} else {
d := types.StringC{Value: fmt.Sprint(*data.Size)}
d := types.StringC{Value: strconv.FormatInt(*data.Size, 10)}
if err = p.Set(parser.Ring, data.Name, "size", d); err != nil {
return err
}
Expand Down

0 comments on commit 7940c5d

Please sign in to comment.