Skip to content

Commit

Permalink
fix: fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Jan 18, 2025
1 parent 9ba2cb8 commit 72fd3bf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function activate(context: vscode.ExtensionContext) {
handleSettingsChange,
);

Authentication.initialize(context.globalState);
Authentication.initialize();

// Auto connect to Twitch Chat if 'twitchThemer.autoConnect' is true (default is false)
// and we are currently streaming.
Expand All @@ -87,15 +87,12 @@ export async function deactivate() {
_themer = undefined;
}

async function autoConnect(
chatClient: ChatClient,
context: vscode.ExtensionContext,
) {
async function autoConnect(chatClient: ChatClient) {
const shouldAutoConnect =
vscode.workspace
.getConfiguration("twitchThemer")
.get<boolean>("autoConnect") || false;
if (shouldAutoConnect && (await API.getStreamIsActive(context.globalState))) {
if (shouldAutoConnect && (await API.getStreamIsActive())) {
chatClient?.toggleChat.bind(chatClient)();
}
}
Expand Down

0 comments on commit 72fd3bf

Please sign in to comment.