Skip to content

Commit

Permalink
chore: remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Oct 27, 2022
1 parent fd70df1 commit 20573e3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/activity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Selection, type TextDocument, debug, DiagnosticSeverity, env, languages, workspace } from "vscode";
import { resolveLangName, toLower, toTitle, toUpper } from "./helpers/resolveLangName";
import { type SetActivity } from "@xhayper/discord-rpc";
import { CONFIG_KEYS, EMPTY, FAKE_EMPTY } from "./constants";
import { CONFIG_KEYS, FAKE_EMPTY } from "./constants";
import { getFileSize } from "./helpers/getFileSize";
import { isExcluded } from "./helpers/isExcluded";
import { isObject } from "./helpers/isObject";
Expand Down Expand Up @@ -139,10 +139,8 @@ export const activity = async (
}
case CURRENT_STATUS.EDITING: {
if (!isWorkspaceExcluded) {
if (detailsEnabled)
details = await replaceAllText(config.get(CONFIG_KEYS.Status.Details.Text.Editing));
if (stateEnabled)
state = await replaceAllText(config.get(CONFIG_KEYS.Status.State.Text.Editing));
if (detailsEnabled) details = await replaceAllText(config.get(CONFIG_KEYS.Status.Details.Text.Editing));
if (stateEnabled) state = await replaceAllText(config.get(CONFIG_KEYS.Status.State.Text.Editing));
}

largeImageKey = await replaceAllText(config.get(CONFIG_KEYS.Status.Image.Large.Editing.Key));
Expand All @@ -156,8 +154,7 @@ export const activity = async (
if (!isWorkspaceExcluded) {
if (detailsEnabled)
details = await replaceAllText(config.get(CONFIG_KEYS.Status.Details.Text.Debugging));
if (stateEnabled)
state = await replaceAllText(config.get(CONFIG_KEYS.Status.State.Text.Debugging));
if (stateEnabled) state = await replaceAllText(config.get(CONFIG_KEYS.Status.State.Text.Debugging));
}

largeImageKey = await replaceAllText(config.get(CONFIG_KEYS.Status.Image.Large.Debugging.Key));
Expand All @@ -169,10 +166,8 @@ export const activity = async (
}
case CURRENT_STATUS.VIEWING: {
if (!isWorkspaceExcluded) {
if (detailsEnabled)
details = await replaceAllText(config.get(CONFIG_KEYS.Status.Details.Text.Viewing));
if (stateEnabled)
state = await replaceAllText(config.get(CONFIG_KEYS.Status.State.Text.Viewing));
if (detailsEnabled) details = await replaceAllText(config.get(CONFIG_KEYS.Status.Details.Text.Viewing));
if (stateEnabled) state = await replaceAllText(config.get(CONFIG_KEYS.Status.State.Text.Viewing));
}

largeImageKey = await replaceAllText(config.get(CONFIG_KEYS.Status.Image.Large.Viewing.Key));
Expand Down

0 comments on commit 20573e3

Please sign in to comment.