mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
added return guard to remove indent level
This commit is contained in:
@ -347,7 +347,10 @@ def process_pull(
|
|||||||
if all(not comment.file.endswith(".java") for comment in entry.comments):
|
if all(not comment.file.endswith(".java") for comment in entry.comments):
|
||||||
# if the commented files are all not code related, why bother compiling and testing the code?
|
# if the commented files are all not code related, why bother compiling and testing the code?
|
||||||
pbar.update(5)
|
pbar.update(5)
|
||||||
else:
|
if entry.metadata.successful:
|
||||||
|
entry.metadata.reason_for_failure = "Valid PR! But isn't code related though."
|
||||||
|
return
|
||||||
|
|
||||||
with build_handler:
|
with build_handler:
|
||||||
try:
|
try:
|
||||||
for message, action in steps:
|
for message, action in steps:
|
||||||
|
Reference in New Issue
Block a user