Skip to content

Commit 0a4c89e

Browse files
refactor: move function internally
1 parent 2e7a27c commit 0a4c89e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/toon/src/decode/expand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ export interface ObjectWithQuotedKeys extends JsonObject {
1818
[QUOTED_KEY_MARKER]?: Set<string>
1919
}
2020

21-
function canMerge(a: JsonValue, b: JsonValue): a is JsonObject {
22-
return isJsonObject(a) && isJsonObject(b)
23-
}
24-
2521
/**
2622
* Expands dotted keys into nested objects in safe mode.
2723
*
@@ -229,3 +225,7 @@ function mergeObjects(
229225
}
230226

231227
// #endregion
228+
229+
function canMerge(a: JsonValue, b: JsonValue): a is JsonObject {
230+
return isJsonObject(a) && isJsonObject(b)
231+
}

0 commit comments

Comments
 (0)