Skip to content

Commit f2a7e3b

Browse files
chinyeunglitdruez
andauthored
Update scanpipe/pipes/maven.py
Co-authored-by: tdruez <489057+tdruez@users.noreply.github.com> Signed-off-by: Chin Yeung <tli@nexb.com>
1 parent 91120ae commit f2a7e3b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

scanpipe/pipes/maven.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ def download_pom_file(pom_url):
136136
except requests.RequestException:
137137
return {}
138138
path = str(downloaded_pom.path)
139-
pom_file_dict = {}
140-
pom_file_dict["pom_file_path"] = path
141-
pom_file_dict["output_path"] = path + "-output.json"
142-
pom_file_dict["pom_url"] = pom_url
143-
return pom_file_dict
139+
return {
140+
"pom_file_path": path,
141+
"output_path": f"{path}-output.json",
142+
"pom_url": pom_url,
143+
}
144144

145145

146146
def scan_pom_file(pom_file_dict):

0 commit comments

Comments
 (0)