Skip to content

Commit c53acc3

Browse files
committed
refactor: remove unneeded list
1 parent 1816b1b commit c53acc3

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

scripts/generate_osv_advisories.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,13 @@ def parse_version_constraint(
153153
'the = operator is not real, and will be treated as an exact version'
154154
)
155155
warnings.extend(
156-
[
157-
'components should not be prefixed with leading zeros'
158-
for component in [
159-
part.first_component or '',
160-
part.second_component or '',
161-
part.third_component or '',
162-
]
163-
if len(component) > 1 and component.startswith('0')
156+
'components should not be prefixed with leading zeros'
157+
for component in [
158+
part.first_component or '',
159+
part.second_component or '',
160+
part.third_component or '',
164161
]
162+
if len(component) > 1 and component.startswith('0')
165163
)
166164

167165
# https://getcomposer.org/doc/articles/versions.md#wildcard-version-range-

0 commit comments

Comments
 (0)