Skip to content

Commit 2154a57

Browse files
committed
fmt
Signed-off-by: Finbarrs Ọkẹ́túnjí <[email protected]>
1 parent 773cf8a commit 2154a57

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

mothistory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var errorMessages = map[int]string{
7878
504: "Gateway Timeout - The upstream server failed to send a request in the time allowed by the server",
7979
}
8080

81-
func doRequest[T any](c *Client, method, endpoint string, queryParams url.Values)(*T, error) {
81+
func doRequest[T any](c *Client, method, endpoint string, queryParams url.Values) (*T, error) {
8282
limiterCtx := context.Background()
8383
if err := c.dayLimiter.Wait(limiterCtx); err != nil {
8484
return nil, fmt.Errorf("daily quota exceeded: %v", err)

mothistory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestRenewCredentials(t *testing.T) {
117117
t.Fatalf("RenewCredentials failed: %v", err)
118118
}
119119

120-
if len(data.ClientSecret) == 0 {
120+
if len(data.ClientSecret) == 0 {
121121
t.Error("Expected 'clientSecret' length > 0")
122122
}
123123
}

responses.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package mothistory
22

33
import (
4-
// "encoding/json"
4+
// "encoding/json"
55
)
6+
67
// Response for {baseURL}/[registration|vin]/<registration|vin>
78
type VehicleDetailsResponse struct {
89
Registration string `json:"registration"`
@@ -52,4 +53,4 @@ type BulkDelta struct {
5253
// Response for v1/trade/[credentials]
5354
type ClientSecretResponse struct {
5455
ClientSecret string `json:"clientSecret"`
55-
}
56+
}

0 commit comments

Comments
 (0)