Skip to content

Commit 12817b6

Browse files
Bump golangci-lint and fix new warnings (#57)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 04e3551 commit 12817b6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
go-version: "stable"
2323
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
24+
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
2525
with:
2626
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
2727
version: latest

osmshortlink.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ func Decode(s string) (float64, float64, int, error) {
7171
var i int
7272
var x int64 = 0
7373
var y int64 = 0
74-
var z int = -8
74+
var z = -8
7575
for i = 0; i < len(s); i++ {
76-
var digit int = -1
77-
var c byte = s[i]
76+
var digit = -1
77+
var c = s[i]
7878
for j := 0; j < len(intToBase64); j++ {
7979
if c == intToBase64[j] {
8080
digit = j
@@ -98,8 +98,8 @@ func Decode(s string) (float64, float64, int, error) {
9898
z += 3
9999
}
100100

101-
var lon float64 = float64(x)*math.Pow(float64(2), float64(2-3*i))*90.0 - float64(180)
102-
var lat float64 = float64(y)*math.Pow(float64(2), float64(2-3*i))*45.0 - float64(90)
101+
var lon = float64(x)*math.Pow(float64(2), float64(2-3*i))*90.0 - float64(180)
102+
var lat = float64(y)*math.Pow(float64(2), float64(2-3*i))*45.0 - float64(90)
103103
// adjust z
104104
if i < len(s) && s[i] == '-' {
105105
z -= 2

0 commit comments

Comments
 (0)