Skip to content

Commit

Permalink
More lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Dec 18, 2024
1 parent 8be9bff commit 014eb77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/scriptflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func decodeHeaders1pX(
}

if data, ok := headers["warnings"]; ok {
var warnings []Warning
var warnings []*Warning
err := json.Unmarshal([]byte(data), &warnings)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions internal/client/warning.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type Warning struct {
Start *int `json:"start,omitempty"`
}

// Err returns a formatted error for a query
func (w *Warning) Err(query string) error {
if w.Line == nil || w.Start == nil {
return errorFromCode(w.Code, w.Message)
Expand Down

0 comments on commit 014eb77

Please sign in to comment.