Skip to content

Commit cbd6cda

Browse files
committed
Lint
1 parent 7d53b54 commit cbd6cda

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jestconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"transform": {
33
"^.+\\.(t|j)sx?$": "ts-jest"
44
},
5-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
5+
"testRegex": "./__tests__/Anchor.test.ts",
66
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"]
77
}

src/anchor/coder/instructions.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ export class PythOracleInstructionCoder implements InstructionCoder {
8888
}
8989

9090
/// updProduct has it's own format
91-
if (methodName == 'updProduct') {
91+
if (methodName === 'updProduct') {
9292
let offset = 0
93-
for (let key of Object.keys(ix.productMetadata)) {
93+
for (const key of Object.keys(ix.productMetadata)) {
9494
offset += buffer.subarray(offset).writeInt8(key.length)
9595
offset += buffer.subarray(offset).write(key)
9696
offset += buffer.subarray(offset).writeInt8(ix.productMetadata[key].length)
@@ -135,7 +135,7 @@ export class PythOracleInstructionCoder implements InstructionCoder {
135135
}
136136

137137
/// updProduct has it's own format
138-
if (decoder.name == 'updProduct') {
138+
if (decoder.name === 'updProduct') {
139139
const product: Product = {}
140140
let idx = 0
141141
while (idx < data.length) {

0 commit comments

Comments
 (0)