Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisSigrist committed Oct 19, 2023
1 parent 088ceb8 commit 753ce77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/codegen/dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { indent } from "./utils/stringUtils.js";
export function generateDictionaryModule(dictionary) {
const dictionaryBodyLines = [];
for (const [key, message] of dictionary) {
let line = "";
let messageCode = "";
if (message.typeDefinition) {
line += `/** @type {(args: ${message.typeDefinition}) => string} */\n`;
messageCode += `/** @type {(args: ${message.typeDefinition}) => string} */\n`;
}
line += `"${key}": ${message.precompiled}`;
dictionaryBodyLines.push(line);
messageCode += `"${key}": ${message.precompiled}`;
dictionaryBodyLines.push(messageCode);
}
const dictionaryBody = dictionaryBodyLines.join(",\n");

Expand Down

0 comments on commit 753ce77

Please sign in to comment.