From 2c250dab94f73ef8ea88e32b95c0abdfd94e05fd Mon Sep 17 00:00:00 2001 From: Ludovic Levalleux Date: Wed, 20 Nov 2024 17:37:02 +0000 Subject: [PATCH] chore: dummy change in subgraph workspace (#853) --- packages/subgraph/src/utils/json.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/subgraph/src/utils/json.ts b/packages/subgraph/src/utils/json.ts index a8a5cf59b..fb8d9e2e0 100644 --- a/packages/subgraph/src/utils/json.ts +++ b/packages/subgraph/src/utils/json.ts @@ -26,14 +26,6 @@ export function convertToString(jsonValue: JSONValue | null): string { return ""; } -export function convertToArray(jsonValue: JSONValue | null): Array { - if (jsonValue !== null && jsonValue.kind === JSONValueKind.ARRAY) { - return jsonValue.toArray(); - } - - return []; -} - export function convertToStringArray( jsonValue: JSONValue | null ): Array { @@ -45,6 +37,14 @@ export function convertToStringArray( return convertedArray; } +export function convertToArray(jsonValue: JSONValue | null): Array { + if (jsonValue !== null && jsonValue.kind === JSONValueKind.ARRAY) { + return jsonValue.toArray(); + } + + return []; +} + export function convertToBoolean(jsonValue: JSONValue | null): boolean { if (jsonValue !== null && jsonValue.kind === JSONValueKind.BOOL) { return jsonValue.toBool();