Skip to content

Commit

Permalink
Fix code style issues with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Jun 2, 2022
1 parent 6704925 commit efee6f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const app = new cdk.App()

// Local dev stack
new RoutingAPIStack(app, 'RoutingAPIStack', {
providerName : process.env.PROVIDER_NAME!,
providerName: process.env.PROVIDER_NAME!,
projectId: process.env.PROJECT_ID!,
provisionedConcurrency: process.env.PROVISION_CONCURRENCY ? parseInt(process.env.PROVISION_CONCURRENCY) : 0,
throttlingOverride: process.env.THROTTLE_PER_FIVE_MINS,
Expand Down
21 changes: 10 additions & 11 deletions lib/handlers/injector-sor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,16 @@ export abstract class InjectorSOR<Router, QueryParams> extends Injector<
const chainName = ID_TO_NETWORK_NAME(chainId)
const providerName = process.env.PROVIDER_NAME
const projectId = process.env.PROJECT_ID
const url = ():string=> {
switch(providerName) {
case('infura'):
return `https://${chainName}.infura.io/v3/${projectId}`
case('moralis'):
throw Error("Fatal: Moralis Provider Not Supported")
default:
throw Error("Fatal: Unknown Provider Not Supported")
}
};

const url = (): string => {
switch (providerName) {
case 'infura':
return `https://${chainName}.infura.io/v3/${projectId}`
case 'moralis':
throw Error('Fatal: Moralis Provider Not Supported')
default:
throw Error('Fatal: Unknown Provider Not Supported')
}
}

let timeout: number
switch (chainId) {
Expand Down

0 comments on commit efee6f6

Please sign in to comment.