Skip to content

Basic Verification Using Available Offline Data#4

Open
ddrobner wants to merge 17 commits intomasterfrom
basic-verification
Open

Basic Verification Using Available Offline Data#4
ddrobner wants to merge 17 commits intomasterfrom
basic-verification

Conversation

@ddrobner
Copy link
Copy Markdown
Member

@ddrobner ddrobner commented Oct 3, 2020

No description provided.

def verify_offline(self, score, matchno):
if self.score_isnumeric(score) and self.check_score_bounds(score) and self.match_isnumeric(matchno) and self.check_match_bounds(matchno):
return True
return False No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if A and B and C
  return True
return False

return A and B and C

Copy link
Copy Markdown

@andrewazores andrewazores Oct 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing generally applies to methods above, too. Just not ones that use exception handling, I guess.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh thanks for pointing that out, didn't think about using boolean operators in a return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants