Skip to content

Commit e2365f5

Browse files
committed
fix: cleanup
1 parent e933acb commit e2365f5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/api/test/utils/checkAgainstSpec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ function prettyAjvErrors(errors: ErrorObject[] | null | undefined): string {
202202
type StringifiedProperty = string | StringifiedProperty[] | null | undefined;
203203

204204
function stringifyProperty(value: unknown): StringifiedProperty {
205-
if (value === undefined || value === null || typeof value === "string") {
206-
// Handle specifically null as `typeof null === "object"`
207-
return value;
208-
} else if (typeof value === "number") {
205+
if (typeof value === "number") {
209206
return value.toString(10);
210207
} else if (Array.isArray(value)) {
211208
return value.map(stringifyProperty);

packages/beacon-node/src/api/impl/beacon/blocks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ export function getBeaconBlockApi({
406406
await publishBlock(signedBlockOrContents, opts);
407407
},
408408

409-
async getBlobSidecars(blockId, indices = []) {
409+
async getBlobSidecars(blockId, indices) {
410410
const {block, executionOptimistic} = await resolveBlockId(chain, blockId);
411411
const blockRoot = config.getForkTypes(block.message.slot).BeaconBlock.hashTreeRoot(block.message);
412412

0 commit comments

Comments
 (0)