Skip to content

Commit 44b3356

Browse files
Fix lint
1 parent 1934650 commit 44b3356

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

profile_apps.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package linodego
33
import (
44
"context"
55
"encoding/json"
6-
"github.com/linode/linodego/internal/parseabletime"
76
"time"
7+
8+
"github.com/linode/linodego/internal/parseabletime"
89
)
910

1011
// ProfileApp represents a ProfileApp object
@@ -25,7 +26,7 @@ type ProfileApp struct {
2526
Scopes string `json:"scopes"`
2627

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

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

5657
// 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)
58+
func (c *Client) GetProfileApp(ctx context.Context, appID int) (*ProfileApp, error) {
59+
e := formatAPIPath("profile/apps/%d", appID)
5960
return doGETRequest[ProfileApp](ctx, c, e)
6061
}
6162

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

6768
// 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)
69+
func (c *Client) DeleteProfileApp(ctx context.Context, appID int) error {
70+
e := formatAPIPath("profile/apps/%d", appID)
7071
err := doDELETERequest(ctx, c, e)
7172
return err
7273
}

profile_devices.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package linodego
33
import (
44
"context"
55
"encoding/json"
6-
"github.com/linode/linodego/internal/parseabletime"
76
"time"
7+
8+
"github.com/linode/linodego/internal/parseabletime"
89
)
910

1011
// ProfileDevice represents a ProfileDevice object
@@ -53,8 +54,8 @@ func (pd *ProfileDevice) UnmarshalJSON(b []byte) error {
5354
}
5455

5556
// 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)
57+
func (c *Client) GetProfileDevice(ctx context.Context, deviceID int) (*ProfileDevice, error) {
58+
e := formatAPIPath("profile/devices/%d", deviceID)
5859
return doGETRequest[ProfileDevice](ctx, c, e)
5960
}
6061

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

6667
// 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)
68+
func (c *Client) DeleteProfileDevice(ctx context.Context, deviceID int) error {
69+
e := formatAPIPath("profile/devices/%d", deviceID)
6970
err := doDELETERequest(ctx, c, e)
7071
return err
7172
}

0 commit comments

Comments
 (0)