style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -72,7 +72,7 @@ export class GitHubModelsClient implements ModelClient {
|
||||
* callback is provided, invoke it to obtain a token (e.g. via OAuth device flow).
|
||||
*/
|
||||
private async ensureToken(): Promise<void> {
|
||||
if (this.tokenResolved) return;
|
||||
if (this.tokenResolved) {return;}
|
||||
|
||||
// Try resolving again (user might have logged in via /login since construction)
|
||||
const token = getGitHubToken();
|
||||
@@ -85,7 +85,7 @@ export class GitHubModelsClient implements ModelClient {
|
||||
if (this.onLoginRequired) {
|
||||
const newToken = await this.onLoginRequired();
|
||||
this.rebuildClient(newToken);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
// No token and no callback — the API call will fail with an auth error
|
||||
|
||||
Reference in New Issue
Block a user