Skip to content

Commit 33008a9

Browse files
committed
Format
1 parent 7eca703 commit 33008a9

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

scripts/generate-database.js

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -318,28 +318,29 @@ const extractExamples = async (
318318
? 'big'
319319
: 'huge';
320320
/** @type {ExampleUsedExtension[]} */
321-
const usedExtensions = gd.ExampleExtensionUsagesFinder.getUsedExtensions(project)
322-
.toNewVectorString()
323-
.toJSArray()
324-
.map(
325-
/** @param {string} name */
326-
(name) => {
327-
const platformExtension = platformExtensionsMap[name];
328-
if (!platformExtension) {
329-
return { name, fullName: '', helpPath: '', iconUrl: '' };
321+
const usedExtensions =
322+
gd.ExampleExtensionUsagesFinder.getUsedExtensions(project)
323+
.toNewVectorString()
324+
.toJSArray()
325+
.map(
326+
/** @param {string} name */
327+
(name) => {
328+
const platformExtension = platformExtensionsMap[name];
329+
if (!platformExtension) {
330+
return { name, fullName: '', helpPath: '', iconUrl: '' };
331+
}
332+
333+
/** @type {ExampleUsedExtension} */
334+
const usedExtension = {
335+
name,
336+
fullName: platformExtension.getFullName(),
337+
helpPath: platformExtension.getHelpPath(),
338+
iconUrl: platformExtension.getIconUrl(),
339+
category: platformExtension.getCategory(),
340+
};
341+
return usedExtension;
330342
}
331-
332-
/** @type {ExampleUsedExtension} */
333-
const usedExtension = {
334-
name,
335-
fullName: platformExtension.getFullName(),
336-
helpPath: platformExtension.getHelpPath(),
337-
iconUrl: platformExtension.getIconUrl(),
338-
category: platformExtension.getCategory(),
339-
};
340-
return usedExtension;
341-
}
342-
);
343+
);
343344
/** @type {ExampleEventsBasedExtension[]} */
344345
const eventsBasedExtensions = [];
345346
for (let i = 0; i < project.getEventsFunctionsExtensionsCount(); ++i) {

0 commit comments

Comments
 (0)