Skip to content

Commit

Permalink
chore: dummy change in subgraph workspace (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
levalleux-ludo authored Nov 20, 2024
1 parent 5ecac62 commit 2c250da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/subgraph/src/utils/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ export function convertToString(jsonValue: JSONValue | null): string {
return "";
}

export function convertToArray(jsonValue: JSONValue | null): Array<JSONValue> {
if (jsonValue !== null && jsonValue.kind === JSONValueKind.ARRAY) {
return jsonValue.toArray();
}

return [];
}

export function convertToStringArray(
jsonValue: JSONValue | null
): Array<string> {
Expand All @@ -45,6 +37,14 @@ export function convertToStringArray(
return convertedArray;
}

export function convertToArray(jsonValue: JSONValue | null): Array<JSONValue> {
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();
Expand Down

0 comments on commit 2c250da

Please sign in to comment.