Skip to content

Commit

Permalink
fix: Linter issue on the dataParser function
Browse files Browse the repository at this point in the history
  • Loading branch information
alperencelik committed Nov 4, 2024
1 parent f4f2c05 commit 49b6116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxmox.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (c *Client) Get(ctx context.Context, p string, v interface{}) error {
func (c *Client) GetWithParams(ctx context.Context, p string, d interface{}, v interface{}) error {
// Parse data and append to URL
if d != nil {
queryString, err := dataParserForUrl(d)
queryString, err := dataParserForURL(d)
if err != nil {
return err
}
Expand All @@ -161,7 +161,7 @@ func (c *Client) GetWithParams(ctx context.Context, p string, d interface{}, v i
}

// dataParserForUrl parses the data and appends it to the URL as a query string
func dataParserForUrl(d interface{}) (string, error) {
func dataParserForURL(d interface{}) (string, error) {
jsonBytes, err := json.Marshal(d)
if err != nil {
return "", err
Expand Down

0 comments on commit 49b6116

Please sign in to comment.