mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 14:06:30 +00:00
Move const out of loop
This commit is contained in:
parent
c6591510b4
commit
87a43c9b66
1 changed files with 1 additions and 1 deletions
|
@ -34,6 +34,7 @@ export async function extractPackageFile(
|
|||
}
|
||||
|
||||
const flakeLock = flakeLockParsed.data;
|
||||
const rootInputs = flakeLock.nodes['root'].inputs;
|
||||
|
||||
for (const [depName, flakeInput] of Object.entries(flakeLock.nodes)) {
|
||||
// the root input is a magic string for the entrypoint and only references other flake inputs
|
||||
|
@ -42,7 +43,6 @@ export async function extractPackageFile(
|
|||
}
|
||||
|
||||
// skip all locked nodes which are not in the flake.nix and cannot be updated
|
||||
const rootInputs = flakeLock.nodes['root'].inputs;
|
||||
if (!rootInputs || !(depName in rootInputs)) {
|
||||
logger.debug(
|
||||
{ packageLockFile, error: flakeLockParsed.error },
|
||||
|
|
Loading…
Reference in a new issue