Skip to content

Commit

Permalink
Poetry: pretify.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbsgilbs committed Sep 22, 2019
1 parent 3d0db58 commit 81de022
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/manager/poetry/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ function extractFromSection(
}

function extractRegistries(pyprojectfile: PoetryFile): string[] {
const sources = pyprojectfile.tool && pyprojectfile.tool.poetry && pyprojectfile.tool.poetry.source;
const sources =
pyprojectfile.tool &&
pyprojectfile.tool.poetry &&
pyprojectfile.tool.poetry.source;

if (!Array.isArray(sources) || sources.length === 0) {
return null;
Expand Down

0 comments on commit 81de022

Please sign in to comment.