File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -189,19 +189,19 @@ validate:
189
189
return updatedAuthLink , xerrors .Errorf ("update external auth link: %w" , err )
190
190
}
191
191
externalAuthLink = updatedAuthLink
192
- }
193
192
194
- // Update the associated users github.com username if the token is for github.com.
195
- if IsGithubDotComURL (c .AuthCodeURL ("" )) && user != nil {
196
- err = db .UpdateUserGithubComUserID (ctx , database.UpdateUserGithubComUserIDParams {
197
- ID : externalAuthLink .UserID ,
198
- GithubComUserID : sql.NullInt64 {
199
- Int64 : user .ID ,
200
- Valid : true ,
201
- },
202
- })
203
- if err != nil {
204
- return externalAuthLink , xerrors .Errorf ("update user github com user id: %w" , err )
193
+ // Update the associated users github.com username if the token is for github.com.
194
+ if IsGithubDotComURL (c .AuthCodeURL ("" )) && user != nil {
195
+ err = db .UpdateUserGithubComUserID (ctx , database.UpdateUserGithubComUserIDParams {
196
+ ID : externalAuthLink .UserID ,
197
+ GithubComUserID : sql.NullInt64 {
198
+ Int64 : user .ID ,
199
+ Valid : true ,
200
+ },
201
+ })
202
+ if err != nil {
203
+ return externalAuthLink , xerrors .Errorf ("update user github com user id: %w" , err )
204
+ }
205
205
}
206
206
}
207
207
You can’t perform that action at this time.
0 commit comments