Fix various linting issues + golang-lint upgrade (#1245)

This commit is contained in:
Juan Font 2023-03-03 18:22:47 +01:00 committed by GitHub
parent a82a603db6
commit 54f5c249f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true' if: steps.changed-files.outputs.any_changed == 'true'
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v2
with: with:
version: v1.49.0 version: v1.51.2
# Only block PRs on new problems. # Only block PRs on new problems.
# If this is not enabled, we will end up having PRs # If this is not enabled, we will end up having PRs

View File

@ -1,8 +1,8 @@
package cli package cli
import ( import (
"github.com/spf13/cobra"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/cobra"
) )
func init() { func init() {

View File

@ -108,7 +108,7 @@ func WithPort(port int) Option {
} }
} }
// WithTestName sets a a name for the test, this will be reflected // WithTestName sets a name for the test, this will be reflected
// in the Docker container name. // in the Docker container name.
func WithTestName(testName string) Option { func WithTestName(testName string) Option {
return func(hsic *HeadscaleInContainer) { return func(hsic *HeadscaleInContainer) {