diff --git a/packages/react-native/scripts/codegen/generate-artifacts-executor.js b/packages/react-native/scripts/codegen/generate-artifacts-executor.js index 9c4448e0dcfdec..439f7e0dd77d9b 100644 --- a/packages/react-native/scripts/codegen/generate-artifacts-executor.js +++ b/packages/react-native/scripts/codegen/generate-artifacts-executor.js @@ -325,13 +325,13 @@ function findNotLinkedLibraries(projectRoot) { // We don't consider the case were `dependency-name.root` is equal to `null`, because that // means that the library is not linked to the app at all, and in that case the dependency // should be removed by the user. - dependency.platforms && Object.keys(dependency.platforms).forEach(platform => { - if (dependency.platforms[platform] == null) { - notLinkedPlatforms.push(platform); - } - }); + dependency.platforms && + Object.keys(dependency.platforms).forEach(platform => { + if (dependency.platforms[platform] == null) { + notLinkedPlatforms.push(platform); + } + }); notLinkedLibraries[name] = notLinkedPlatforms; - }); return notLinkedLibraries; }