mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-06-12 13:00:59 -04:00
Address feedback from PR review
This commit is contained in:
parent
020d3ea167
commit
1181cd8313
3 changed files with 14 additions and 16 deletions
lib
|
@ -139,12 +139,12 @@ const blocks = function (project) {
|
|||
*/
|
||||
const extensions = function (project) {
|
||||
const result = {count: 0, id: []};
|
||||
const ext = project.info.savedExtensions;
|
||||
|
||||
// Check to ensure project includes any extensions
|
||||
if (typeof project.info.savedExtensions === 'undefined') return result;
|
||||
if (typeof ext === 'undefined') return result;
|
||||
|
||||
// Iterate over extensions and build list
|
||||
var ext = project.info.savedExtensions;
|
||||
for (let i in ext) {
|
||||
result.id.push(ext[i].extensionName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue