Skip to content

Commit

Permalink
Bug 1650306 - Address the defects found by the pylint/no-else-return …
Browse files Browse the repository at this point in the history
…rule. r=sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D82508
  • Loading branch information
Manish-Giri committed Jul 8, 2020
1 parent c61d108 commit 6e3170a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def get_trailing_blank_line_state(depname):

if not lines[-1].strip():
return "has blank line"
else:
return "no blank line"
return "no blank line"


def update_nspr_or_nss(tag, depfile, destination, hgpath):
Expand Down
4 changes: 2 additions & 2 deletions security/manager/ssl/tests/unit/pykey.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,8 @@ def keyFromSpecification(specification):
"""Pass in a specification, get the appropriate key back."""
if specification.startswith('secp'):
return ECCKey(specification)
else:
return RSAKey(specification)
return RSAKey(specification)


# The build harness will call this function with an output file-like
# object and a path to a file containing a specification. This will
Expand Down
8 changes: 4 additions & 4 deletions security/manager/ssl/tests/unit/sign_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def coseAlgorithmToPykeyHash(algorithm):
and returns the corresponding pykey.HASH_* identifier."""
if algorithm == ES256:
return pykey.HASH_SHA256
elif algorithm == ES384:
if algorithm == ES384:
return pykey.HASH_SHA384
elif algorithm == ES512:
if algorithm == ES512:
return pykey.HASH_SHA512
else:
raise UnknownCOSEAlgorithmError(algorithm)
raise UnknownCOSEAlgorithmError(algorithm)


# COSE_Signature = [
# protected : serialized_map,
Expand Down

0 comments on commit 6e3170a

Please sign in to comment.