Skip to content

Commit

Permalink
fix linter II
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Feb 15, 2025
1 parent 9e67248 commit 837c7fa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/derived/selected-universe.derived.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const pageUniverseIdStore: Readable<Principal> = derived(
if (![null, undefined, OWN_CANISTER_ID_TEXT].includes(universe)) {
try {
return Principal.fromText(universe);
} catch (error: unknown) {
} catch (_) {
// Ignore error as we redirect to default Nns or ckBTC
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/modals/neurons/NewFolloweeModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
try {
followee = BigInt(followeeAddress);
} catch (error: unknown) {
} catch (_) {
// TODO: Show error in Input - https://dfinity.atlassian.net/browse/L2-408
alert(`Incorrect followee address ${followeeAddress}`);
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<script lang="ts">
import Input from "$lib/components/ui/Input.svelte";
import { updateVotingPowerRefreshedTimestamp } from "$lib/services/nns-neurons-dev.services";
import { startBusy, stopBusy } from "$lib/stores/busy.store";
import { toastsError } from "$lib/stores/toasts.store";
import { secondsToDateTime } from "$lib/utils/date.utils";
import { Modal, Spinner } from "@dfinity/gix-components";
import type { NeuronInfo } from "@dfinity/nns";
import { createEventDispatcher } from "svelte";
import { updateVotingPowerRefreshedTimestamp } from "$lib/services/nns-neurons-dev.services";
import { isNullish } from "@dfinity/utils";
import Input from "$lib/components/ui/Input.svelte";
import { secondsToDateTime } from "$lib/utils/date.utils";
import { createEventDispatcher } from "svelte";
const YEAR_2099_SECONDS = new Date(2099, 0, 0).getTime() / 1000;
const toBigInt = (value: number | undefined): bigint | undefined => {
try {
if (value !== undefined) return BigInt(value);
} catch (err) {
} catch (_) {
// Do nothing
}
return undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
return valid || labelKey === undefined
? undefined
: replacePlaceholders(translate({ labelKey }), substitutions ?? {});
} catch (error) {
} catch (_) {
return $i18n.error.amount_not_valid;
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/pages/SnsNeuronDetail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
});
await Promise.all([loadNeuron(), loadSnsAccounts({ rootCanisterId })]);
} catch (err: unknown) {
} catch (_) {
// $pageStore.universe might be an invalid principal, like empty or yolo
await goBack(true);
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/pages/SnsProposalDetail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
: syncSnsNeurons(universeId),
]);
await reloadProposal();
} catch (error) {
} catch (_) {
toastsError({
labelKey: "error.wrong_proposal_id",
substitutions: {
Expand Down

0 comments on commit 837c7fa

Please sign in to comment.