Skip to content

Commit

Permalink
go imports
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlombacx committed Oct 11, 2023
1 parent 33bfb12 commit 71322e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/wrappers/azure-http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package wrappers
import (
"encoding/json"
"fmt"
"github.com/checkmarx/ast-cli/internal/wrappers/utils"
"io"
"net/http"
"reflect"
Expand All @@ -13,6 +12,7 @@ import (

"github.com/checkmarx/ast-cli/internal/logger"
"github.com/checkmarx/ast-cli/internal/params"
"github.com/checkmarx/ast-cli/internal/wrappers/utils"

Check failure on line 15 in internal/wrappers/azure-http.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/checkmarx/ast-cli/internal/wrappers/utils' is not allowed from list 'Main' (depguard)
"github.com/pkg/errors"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/wrappers/gitlab-http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package wrappers
import (
"encoding/json"
"fmt"
"github.com/checkmarx/ast-cli/internal/wrappers/utils"
"io"
"net/http"
"net/url"

"github.com/checkmarx/ast-cli/internal/logger"
"github.com/checkmarx/ast-cli/internal/params"
"github.com/checkmarx/ast-cli/internal/wrappers/utils"

Check failure on line 12 in internal/wrappers/gitlab-http.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/checkmarx/ast-cli/internal/wrappers/utils' is not allowed from list 'Main' (depguard)
"github.com/pkg/errors"
"github.com/spf13/viper"
"github.com/tomnomnom/linkheader"
Expand Down
1 change: 0 additions & 1 deletion internal/wrappers/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func ToStringArray(obj interface{}) []string {
}
}

// CloseHTTPResponseBody closes the response body, use it with defer
func CloseHTTPResponseBody(resp *http.Response) {
if resp != nil {
resp.Body.Close()
Expand Down

0 comments on commit 71322e0

Please sign in to comment.