Skip to content

Commit 4526d5d

Browse files
committed
lint fix
1 parent 0a807c1 commit 4526d5d

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

src/@types/Typesense.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ export interface TypesenseCollectionDropFieldSchema {
7070
drop: true
7171
}
7272

73-
export interface TypesenseCollectionUpdateSchema
74-
extends Partial<Omit<TypesenseCollectionCreateSchema, 'name' | 'fields'>> {
73+
export interface TypesenseCollectionUpdateSchema extends Partial<
74+
Omit<TypesenseCollectionCreateSchema, 'name' | 'fields'>
75+
> {
7576
fields?: (TypesenseCollectionFieldSchema | TypesenseCollectionDropFieldSchema)[]
7677
}
7778

src/components/core/compute/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ export async function getAlgoChecksums(
4848
file.type === 'url'
4949
? (file as UrlFileObject).url
5050
: file.type === 'arweave'
51-
? urlJoin(config.arweaveGateway, (file as ArweaveFileObject).transactionId)
52-
: file.type === 'ipfs'
53-
? urlJoin(config.ipfsGateway, (file as IpfsFileObject).hash)
54-
: null
51+
? urlJoin(config.arweaveGateway, (file as ArweaveFileObject).transactionId)
52+
: file.type === 'ipfs'
53+
? urlJoin(config.ipfsGateway, (file as IpfsFileObject).hash)
54+
: null
5555

5656
const { contentChecksum } = await fetchFileMetadata(url, 'get', false)
5757
checksums.files = checksums.files.concat(contentChecksum)

src/components/core/handler/downloadHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ export async function handleDownloadUrlCommand(
102102
headers['Content-Length'.toLowerCase()] = fileMetadata.contentLength
103103

104104
if (!('Content-Disposition'?.toLowerCase() in objTemp))
105-
headers[
106-
'Content-Disposition'.toLowerCase()
107-
] = `attachment;filename=${fileMetadata.name}`
105+
headers['Content-Disposition'.toLowerCase()] =
106+
`attachment;filename=${fileMetadata.name}`
108107
if (encryptFile) {
109108
// we parse the string into the object again
110109
const encryptedObject = ethCrypto.cipher.parse(task.aes_encrypted_key)

src/components/core/handler/fileInfoHandler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ async function formatMetadata(
2828
file.type === 'url'
2929
? (file as UrlFileObject).url
3030
: file.type === 'arweave'
31-
? urlJoin(config.arweaveGateway, (file as ArweaveFileObject).transactionId)
32-
: file.type === 'ipfs'
33-
? urlJoin(config.ipfsGateway, (file as IpfsFileObject).hash)
34-
: null
31+
? urlJoin(config.arweaveGateway, (file as ArweaveFileObject).transactionId)
32+
: file.type === 'ipfs'
33+
? urlJoin(config.ipfsGateway, (file as IpfsFileObject).hash)
34+
: null
3535

3636
const { contentLength, contentType, contentChecksum } = await fetchFileMetadata(
3737
url,

src/utils/blockchain.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,24 +200,24 @@ export class Blockchain {
200200
Number(aggressiveFeePriorityFeePerGas) < MIN_GAS_FEE_POLYGON
201201
? MIN_GAS_FEE_POLYGON
202202
: chainId === BigInt(SEPOLIA_NETWORK_ID) &&
203-
Number(aggressiveFeePriorityFeePerGas) < MIN_GAS_FEE_SEPOLIA
204-
? MIN_GAS_FEE_SEPOLIA
205-
: KNOWN_CONFIDENTIAL_EVMS.includes(chainId) &&
206-
Number(aggressiveFeePriorityFeePerGas) < MIN_GAS_FEE_SAPPHIRE
207-
? MIN_GAS_FEE_SAPPHIRE
208-
: Number(aggressiveFeePriorityFeePerGas),
203+
Number(aggressiveFeePriorityFeePerGas) < MIN_GAS_FEE_SEPOLIA
204+
? MIN_GAS_FEE_SEPOLIA
205+
: KNOWN_CONFIDENTIAL_EVMS.includes(chainId) &&
206+
Number(aggressiveFeePriorityFeePerGas) < MIN_GAS_FEE_SAPPHIRE
207+
? MIN_GAS_FEE_SAPPHIRE
208+
: Number(aggressiveFeePriorityFeePerGas),
209209
maxFeePerGas:
210210
(chainId === BigInt(MUMBAI_NETWORK_ID) ||
211211
chainId === BigInt(POLYGON_NETWORK_ID)) &&
212212
Number(aggressiveFeePerGas) < MIN_GAS_FEE_POLYGON
213213
? MIN_GAS_FEE_POLYGON
214214
: chainId === BigInt(SEPOLIA_NETWORK_ID) &&
215-
Number(aggressiveFeePerGas) < MIN_GAS_FEE_SEPOLIA
216-
? MIN_GAS_FEE_SEPOLIA
217-
: KNOWN_CONFIDENTIAL_EVMS.includes(chainId) &&
218-
Number(aggressiveFeePerGas) < MIN_GAS_FEE_SAPPHIRE
219-
? MIN_GAS_FEE_SAPPHIRE
220-
: Number(aggressiveFeePerGas)
215+
Number(aggressiveFeePerGas) < MIN_GAS_FEE_SEPOLIA
216+
? MIN_GAS_FEE_SEPOLIA
217+
: KNOWN_CONFIDENTIAL_EVMS.includes(chainId) &&
218+
Number(aggressiveFeePerGas) < MIN_GAS_FEE_SAPPHIRE
219+
? MIN_GAS_FEE_SAPPHIRE
220+
: Number(aggressiveFeePerGas)
221221
}
222222
return overrides
223223
} else {

0 commit comments

Comments
 (0)