Skip to content

Commit f40bf5c

Browse files
committed
fixed prettier complaint
1 parent d8cea78 commit f40bf5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/parser.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function parseScreenTree(
9191
// Substitute macros in fileMap
9292
Object.keys(fileMap).forEach(key => {
9393
const entry = fileMap[key];
94-
94+
9595
if (entry.macros && entry.macros.length > 0 && entry.file) {
9696
// Use the first macro set
9797
const macros = entry.macros[0];
@@ -190,13 +190,11 @@ export const RecursiveAppendDuplicateFileMacros = (
190190
}
191191
for (const sibling of jsonSiblings) {
192192
if (sibling.macros) {
193-
194193
// Match against unresolved filename
195194
const matchingFileKey = Object.keys(fileMap).find(
196195
key => fileMap[key].file === sibling.file
197196
);
198197
if (matchingFileKey) {
199-
200198
if (matchingFileKey && sibling.duplicate) {
201199
// Attach macros
202200
fileMap[matchingFileKey].macros = fileMap[matchingFileKey].macros
@@ -233,4 +231,4 @@ export const buildUrlId = (
233231
}
234232
const urlId = `${idPrefix}${idPrefix === "" ? "" : "+"}${fileLabel}`;
235233
return { urlId, fileLabel };
236-
};
234+
};

0 commit comments

Comments
 (0)