Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
toyobayashi and cclauss authored Apr 2, 2024
1 parent 9e85fa3 commit b0a7607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pylib/gyp/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ def replace_sep(s):
defines = {}
lines = stdout.decode("utf-8").replace("\r\n", "\n").split("\n")
for line in lines:
if not line or not line.startswith("#define "):
if (line or "").startswith("#define "):
_, key, *value = line.split(" ")
defines[key] = " ".join(value)
continue
_, key, *value = line.split(" ")
defines[key] = " ".join(value)
return defines

def GetFlavorByPlatform():
Expand Down

0 comments on commit b0a7607

Please sign in to comment.