Skip to content

Commit

Permalink
lint code;
Browse files Browse the repository at this point in the history
Signed-off-by: tcar <[email protected]>
  • Loading branch information
tcar121293 committed Dec 20, 2024
1 parent b826760 commit a36edab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/indexer/config/envLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ The Licensed Work is (c) 2024 Sygma
SPDX-License-Identifier: LGPL-3.0-only
*/

import { NotFoundError } from "../../utils/error";

export type DbConfig = {
host: string;
name: string;
Expand Down Expand Up @@ -85,9 +83,7 @@ export function getEnv(): EnvVariables {
export function getDomainMetadata(domainID: string): DomainMetadata {
const domainMetadata = process.env[`${domainID}_METADATA`];
if (!domainMetadata) {
throw new Error(
`Domain metadata not configured for domain: ${domainID}`,
);
throw new Error(`Domain metadata not configured for domain: ${domainID}`);
}
return JSON.parse(domainMetadata) as DomainMetadata;
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function startProcessing(): Promise<void> {
domainID: domain.id.toString(),
domainName: domain.name,
});
const domainMetadata = getDomainMetadata(domain.id.toString())
const domainMetadata = getDomainMetadata(domain.id.toString());
switch (domain.type) {
case Network.EVM: {
const provider = new ethers.JsonRpcProvider(domainMetadata.rpcUrl);
Expand Down

0 comments on commit a36edab

Please sign in to comment.