Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
417-72KI committed Jul 1, 2024
1 parent 7c61bf2 commit 7e19e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Generator/CodeGenerator/CodeGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extension CodeGenerator {
withJSONObject: json,
options: [.sortedKeys, .prettyPrinted]
)
rawDataString = String(data: rawData, encoding: .utf8) ?? ""
rawDataString = String(decoding: rawData, as: UTF8.self)
}
return try render(with: .rawData(asBinary: asBinary), dictionary: ["rawData": rawDataString])
}
Expand Down

0 comments on commit 7e19e48

Please sign in to comment.