Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: the-johnwick <[email protected]>
  • Loading branch information
the-johnwick committed Sep 11, 2024
1 parent 2408e56 commit 8f26e5c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func GetRepoBranches(ctx *gin.Context) {
if codeErr != nil {
ctx.AbortWithError(http.StatusInternalServerError, fmt.Errorf("failed to get namespaces: %w", err))
}
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %w", &message))
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %s", &message))

Check failure on line 55 in pkg/api/controllers/gitprovider/branches.go

View workflow job for this annotation

GitHub Actions / Unit tests

fmt.Errorf format %s has arg &message of wrong type *string

Check failure on line 55 in pkg/api/controllers/gitprovider/branches.go

View workflow job for this annotation

GitHub Actions / lint

printf: fmt.Errorf format %s has arg &message of wrong type *string (govet)
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GetNamespaces(ctx *gin.Context) {
if codeErr != nil {
ctx.AbortWithError(http.StatusInternalServerError, fmt.Errorf("failed to get namespaces: %w", err))
}
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %w", &message))
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %s", &message))

Check failure on line 37 in pkg/api/controllers/gitprovider/namespaces.go

View workflow job for this annotation

GitHub Actions / Unit tests

fmt.Errorf format %s has arg &message of wrong type *string

Check failure on line 37 in pkg/api/controllers/gitprovider/namespaces.go

View workflow job for this annotation

GitHub Actions / lint

printf: fmt.Errorf format %s has arg &message of wrong type *string (govet)
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/pull_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func GetRepoPRs(ctx *gin.Context) {
if codeErr != nil {
ctx.AbortWithError(http.StatusInternalServerError, fmt.Errorf("failed to get namespaces: %w", err))
}
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %w", &message))
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %s", &message))

Check failure on line 54 in pkg/api/controllers/gitprovider/pull_requests.go

View workflow job for this annotation

GitHub Actions / Unit tests

fmt.Errorf format %s has arg &message of wrong type *string

Check failure on line 54 in pkg/api/controllers/gitprovider/pull_requests.go

View workflow job for this annotation

GitHub Actions / lint

printf: fmt.Errorf format %s has arg &message of wrong type *string (govet)
return
}
ctx.JSON(200, response)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func GetRepositories(ctx *gin.Context) {
if codeErr != nil {
ctx.AbortWithError(http.StatusInternalServerError, fmt.Errorf("failed to get namespaces: %w", err))
}
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %w", &message))
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %s", &message))

Check failure on line 39 in pkg/api/controllers/gitprovider/repositories.go

View workflow job for this annotation

GitHub Actions / Unit tests

fmt.Errorf format %s has arg &message of wrong type *string
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GetGitUser(ctx *gin.Context) {
if codeErr != nil {
ctx.AbortWithError(http.StatusInternalServerError, fmt.Errorf("failed to get namespaces: %w", err))
}
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %w", &message))
ctx.AbortWithError(statusCode, fmt.Errorf("failed to get namespaces: %s", &message))

Check failure on line 37 in pkg/api/controllers/gitprovider/user.go

View workflow job for this annotation

GitHub Actions / Unit tests

fmt.Errorf format %s has arg &message of wrong type *string
return
}

Expand Down

0 comments on commit 8f26e5c

Please sign in to comment.