Skip to content

Commit

Permalink
Bump golangci/golangci-lint-action from 3 to 4 (#47)
Browse files Browse the repository at this point in the history
* Bump golangci/golangci-lint-action from 3 to 4

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3...v4)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update forward.go

* Update root.go

* Update root.go

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Brugger <[email protected]>
  • Loading branch information
dependabot[bot] and bakito authored Feb 12, 2024
1 parent e788a76 commit 449025a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
go-version-file: "go.mod"

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4

- name: Build
run: go build -v ./...
Expand Down
4 changes: 2 additions & 2 deletions cmd/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import (
var forwardCmd = &cobra.Command{
Use: "forward <target URL>",
Short: "Forward requests to a different URL, logging all requests and responses",
Args: func(cmd *cobra.Command, args []string) error {
Args: func(_ *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("requires a target url argument")
}
return nil
},
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
r := router()
r.HandleFunc("/{path:.*}", handler.ForwardFor(args[0], disableLogger, withTLS()))

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var rootCmd = &cobra.Command{
Use: "request-logger",
Version: version.Version,
Short: "A Simple webserver allowing to log incoming requests",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
var config *conf.Conf
var err error
if configFile != "" {
Expand Down

0 comments on commit 449025a

Please sign in to comment.