Skip to content

Commit

Permalink
fix bug in YamlConversion.yaml
Browse files Browse the repository at this point in the history
it doesn't pass the actual valua to `Lierals.wrapValue` lol
  • Loading branch information
GamerGirlandCo committed Feb 18, 2025
1 parent 30424a6 commit 18147ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/types/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type YamlLiteral = string | number | boolean | null | Record<string, any>
export namespace YamlConversion {
/** Convert a literal into a yaml friendly representation. */
export function yaml(value: Literal): YamlLiteral {
const wrapped = Literals.wrapValue(literal);
const wrapped = Literals.wrapValue(value);
if (!wrapped) return null;

switch (wrapped.type) {
Expand Down

0 comments on commit 18147ec

Please sign in to comment.