Skip to content

Commit 8b0fd65

Browse files
build(deps): bump golangci/golangci-lint-action from 7 to 8 (#25)
* build(deps): bump golangci/golangci-lint-action from 7 to 8 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7 to 8. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v7...v8) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * golangci-lint v2.0.2 => v2.1.6 and go changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Francisco Delmar Kurpiel <francisco.kurpiel@simplesurance.de>
1 parent 4e51b0a commit 8b0fd65

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
matrix:
3434
go: ["1.21", "stable"]
35-
lint: ["v2.0.2"]
35+
lint: ["v2.1.6"]
3636
name: lint
3737
runs-on: ubuntu-latest
3838
steps:
@@ -42,6 +42,6 @@ jobs:
4242
go-version: ${{ matrix.go }}
4343
cache: true
4444
- name: golangci-lint
45-
uses: golangci/golangci-lint-action@v7
45+
uses: golangci/golangci-lint-action@v8
4646
with:
4747
version: ${{ matrix.lint }}

client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ var errResponseTooLarge = retry.PermanentError{
3636
Cause: errors.New("Response from CloudFlare is too large"),
3737
}
3838

39+
type Client struct {
40+
*settings
41+
creds Credentials
42+
}
43+
3944
func NewClient(creds Credentials, options ...Option) *Client {
4045
ret := Client{
4146
settings: applyOptions(options...),
@@ -45,11 +50,6 @@ func NewClient(creds Credentials, options ...Option) *Client {
4550
return &ret
4651
}
4752

48-
type Client struct {
49-
*settings
50-
creds Credentials
51-
}
52-
5353
// sendRequestRetry tries sending the request until it succeeds, fail to
5454
// many times of fails once with a permanent error. Wait between retries
5555
// use exponential backoff.

log/logger.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ func (l *Logger) D(lf func(lg DebugFn)) {
6262

6363
type DebugFn func(msg string, opt ...Option)
6464

65-
func (l *Logger) d(msg string, opt ...Option) {
66-
if helper := l.driver.PreLog(); helper != nil {
67-
helper()
68-
}
69-
l.log(msg, Debug, opt...)
70-
}
71-
7265
func (l *Logger) I(msg string, opt ...Option) {
7366
if helper := l.driver.PreLog(); helper != nil {
7467
helper()
@@ -90,6 +83,13 @@ func (l *Logger) E(msg string, opt ...Option) {
9083
l.log(msg, Error, opt...)
9184
}
9285

86+
func (l *Logger) d(msg string, opt ...Option) {
87+
if helper := l.driver.PreLog(); helper != nil {
88+
helper()
89+
}
90+
l.log(msg, Debug, opt...)
91+
}
92+
9393
func (l *Logger) log(msg string, sev Severity, opt ...Option) {
9494
if helper := l.driver.PreLog(); helper != nil {
9595
helper()

0 commit comments

Comments
 (0)