Skip to content

Commit c7a8056

Browse files
authored
simplify while loop
1 parent 71e6077 commit c7a8056

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/update-release-branch.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
186186
with open('CHANGELOG.md', 'r') as f:
187187

188188
# until we find the first section, just duplicate all lines
189-
while True:
190-
found_first_section = False
189+
found_first_section = False
190+
while not found_first_section:
191191
line = f.readline()
192192
if not line:
193193
raise Exception('Could not find any change sections in CHANGELOG.md') # EOF
@@ -197,9 +197,6 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
197197
found_first_section = True
198198

199199
output += line
200-
if found_first_section:
201-
# we now handle things differently
202-
break
203200

204201
# found_content tracks whether we hit two headings in a row
205202
found_content = False

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy