Skip to content

Commit a7382b6

Browse files
removing httpGet variable (#72)
1 parent 5d76046 commit a7382b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

connections/connection.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,12 @@ type TypesJSONStruct struct {
6868
} `json:"damage_relations"`
6969
}
7070

71-
var httpGet = http.Get
7271
var red = lipgloss.Color("#F2055C")
7372
var errorColor = lipgloss.NewStyle().Foreground(red)
7473

7574
// ApiCallSetup Helper function to handle API calls and JSON unmarshalling
7675
func ApiCallSetup(url string, target interface{}) error {
77-
res, err := httpGet(url)
76+
res, err := http.Get(url)
7877
if err != nil {
7978
return fmt.Errorf("error making GET request: %w", err)
8079
}

0 commit comments

Comments
 (0)