Skip to content

Commit aa577c2

Browse files
committed
Fix linting
1 parent e64f2af commit aa577c2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

coderd/database/dbmem/dbmem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8094,7 +8094,7 @@ func (q *FakeQuerier) UpdateUserDeletedByID(_ context.Context, id uuid.UUID) err
80948094
return sql.ErrNoRows
80958095
}
80968096

8097-
func (q *FakeQuerier) UpdateUserGithubComUserID(ctx context.Context, arg database.UpdateUserGithubComUserIDParams) error {
8097+
func (q *FakeQuerier) UpdateUserGithubComUserID(_ context.Context, arg database.UpdateUserGithubComUserIDParams) error {
80988098
err := validateDatabaseType(arg)
80998099
if err != nil {
81008100
return err

coderd/externalauth/externalauth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,9 @@ func (r roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
968968
// IsGithubDotComURL returns true if the given URL is a github.com URL.
969969
func IsGithubDotComURL(str string) bool {
970970
str = strings.ToLower(str)
971-
url, err := url.Parse(str)
971+
ghUrl, err := url.Parse(str)
972972
if err != nil {
973973
return false
974974
}
975-
return url.Host == "github.com"
975+
return ghUrl.Host == "github.com"
976976
}

site/src/pages/ExternalAuthPage/ExternalAuthPageView.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WebAuthenticated.args = {
2222
app_installable: false,
2323
display_name: "BitBucket",
2424
user: {
25+
id: 0,
2526
avatar_url: "https://avatars.githubusercontent.com/u/7122116?v=4",
2627
login: "kylecarbs",
2728
name: "Kyle Carberry",
@@ -104,6 +105,7 @@ DeviceAuthenticatedNotInstalled.args = {
104105
app_install_url: "https://example.com",
105106
app_installable: true,
106107
user: {
108+
id: 0,
107109
avatar_url: "https://avatars.githubusercontent.com/u/7122116?v=4",
108110
login: "kylecarbs",
109111
name: "Kyle Carberry",
@@ -123,6 +125,7 @@ DeviceAuthenticatedInstalled.args = {
123125
configure_url: "https://example.com",
124126
id: 1,
125127
account: {
128+
id: 0,
126129
avatar_url: "https://github.com/coder.png",
127130
login: "coder",
128131
name: "Coder",
@@ -133,6 +136,7 @@ DeviceAuthenticatedInstalled.args = {
133136
app_install_url: "https://example.com",
134137
app_installable: true,
135138
user: {
139+
id: 0,
136140
avatar_url: "https://avatars.githubusercontent.com/u/7122116?v=4",
137141
login: "kylecarbs",
138142
name: "Kyle Carberry",

0 commit comments

Comments
 (0)