Skip to content

Commit 22deaa4

Browse files
Fix lint
1 parent 1934650 commit 22deaa4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

profile_apps.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type ProfileApp struct {
2525
Scopes string `json:"scopes"`
2626

2727
// The URL at which this app's thumbnail may be accessed.
28-
ThumbnailUrl string `json:"thumbnail_url"`
28+
ThumbnailURL string `json:"thumbnail_url"`
2929

3030
// The website where you can get more information about this app.
3131
Website string `json:"website"`
@@ -54,8 +54,8 @@ func (pa *ProfileApp) UnmarshalJSON(b []byte) error {
5454
}
5555

5656
// GetProfileApp returns the ProfileApp with the provided id
57-
func (c *Client) GetProfileApp(ctx context.Context, appId int) (*ProfileApp, error) {
58-
e := formatAPIPath("profile/apps/%d", appId)
57+
func (c *Client) GetProfileApp(ctx context.Context, appID int) (*ProfileApp, error) {
58+
e := formatAPIPath("profile/apps/%d", appID)
5959
return doGETRequest[ProfileApp](ctx, c, e)
6060
}
6161

@@ -65,8 +65,8 @@ func (c *Client) ListProfileApps(ctx context.Context, opts *ListOptions) ([]Prof
6565
}
6666

6767
// DeleteProfileApp revokes the given ProfileApp's access to the account
68-
func (c *Client) DeleteProfileApp(ctx context.Context, appId int) error {
69-
e := formatAPIPath("profile/apps/%d", appId)
68+
func (c *Client) DeleteProfileApp(ctx context.Context, appID int) error {
69+
e := formatAPIPath("profile/apps/%d", appID)
7070
err := doDELETERequest(ctx, c, e)
7171
return err
7272
}

profile_devices.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ func (pd *ProfileDevice) UnmarshalJSON(b []byte) error {
5353
}
5454

5555
// GetProfileDevice returns the ProfileDevice with the provided id
56-
func (c *Client) GetProfileDevice(ctx context.Context, deviceId int) (*ProfileDevice, error) {
57-
e := formatAPIPath("profile/devices/%d", deviceId)
56+
func (c *Client) GetProfileDevice(ctx context.Context, deviceID int) (*ProfileDevice, error) {
57+
e := formatAPIPath("profile/devices/%d", deviceID)
5858
return doGETRequest[ProfileDevice](ctx, c, e)
5959
}
6060

@@ -64,8 +64,8 @@ func (c *Client) ListProfileDevices(ctx context.Context, opts *ListOptions) ([]P
6464
}
6565

6666
// DeleteProfileDevice revokes the given ProfileDevice's status as a trusted device
67-
func (c *Client) DeleteProfileDevice(ctx context.Context, deviceId int) error {
68-
e := formatAPIPath("profile/devices/%d", deviceId)
67+
func (c *Client) DeleteProfileDevice(ctx context.Context, deviceID int) error {
68+
e := formatAPIPath("profile/devices/%d", deviceID)
6969
err := doDELETERequest(ctx, c, e)
7070
return err
7171
}

0 commit comments

Comments
 (0)