Skip to content

Commit 4e2c231

Browse files
Deps/golangci golangci lint 2.x (#1159)
* Update dependency golangci/golangci-lint to v2.5.0 | datasource | package | from | to | | ----------- | ---------------------- | ------ | ------ | | github-tags | golangci/golangci-lint | v2.4.0 | v2.5.0 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix lint issue --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 2c08dda commit 4e2c231

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Lint Go
3333
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3434
with:
35-
version: v2.4.0 # renovate: datasource=github-tags depName=golangci/golangci-lint
35+
version: v2.5.0 # renovate: datasource=github-tags depName=golangci/golangci-lint
3636

3737
actionlint:
3838
name: Actionlint

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: fix-byte-order-marker
2727

2828
- repo: https://github.com/golangci/golangci-lint
29-
rev: v2.4.0
29+
rev: v2.5.0
3030
hooks:
3131
- id: golangci-lint-full
3232

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ VERSION = 1.5.0
22
TAG = $(VERSION)
33
PREFIX = nginx/nginx-prometheus-exporter
44
# renovate: datasource=github-tags depName=golangci/golangci-lint
5-
GOLANGCI_LINT_VERSION = v2.4.0
5+
GOLANGCI_LINT_VERSION = v2.5.0
66

77
.DEFAULT_GOAL:=nginx-prometheus-exporter
88

exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func parsePositiveDuration(s string) (positiveDuration, error) {
6161
func createPositiveDurationFlag(s kingpin.Settings) (target *time.Duration) {
6262
target = new(time.Duration)
6363
s.SetValue(&positiveDuration{Duration: *target})
64-
return
64+
return target
6565
}
6666

6767
func parseUnixSocketAddress(address string) (string, string, error) {

0 commit comments

Comments
 (0)