Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mjishnu committed Apr 16, 2023
1 parent d3ced65 commit 6f27d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utls.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def os_arc():

if len(content_list) > 1:
for data in content_list[1:]:
if not (arch == "neutral" or arch == os_arc) and data[0] != arch and (data[0] == "neutral" or data[0] == os_arc()):
if arch not in ("neutral", os_arc()) and data[0] != arch and data[0] in ("neutral", os_arc()):
arch = data[0]
_type = data[1]
ver = data[2]
Expand Down Expand Up @@ -132,7 +132,7 @@ def os_arc():
if len(content_list) > 1:
for data in content_list[1:]:
# checking arch is same as main file
if not (arch == "neutral" or arch == os_arc) and data[0] != arch and (data[0] == "neutral" or data[0] == final_arch):
if arch not in ("neutral", os_arc()) and data[0] != arch and data[0] in ("neutral", final_arch):
arch = data[0]
_type = data[1]
ver = data[2]
Expand Down

0 comments on commit 6f27d66

Please sign in to comment.