Skip to content

Commit d8950ed

Browse files
Copilotde-nordic
andcommitted
Fix indentation consistency in combined if statement
Co-authored-by: de-nordic <56024351+de-nordic@users.noreply.github.com>
1 parent c05499b commit d8950ed

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/imgtool/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,11 @@ def sign(ctx, key, public_key_format, align, version, pad_sig, header_size,
483483
if not aes_raw_key:
484484
enckey = load_key(encrypt) if encrypt else None
485485
if enckey and key and ((isinstance(key, keys.ECDSA256P1) and
486-
not isinstance(enckey, keys.ECDSA256P1Public))
487-
or (isinstance(key, keys.ECDSA384P1) and
488-
not isinstance(enckey, keys.ECDSA384P1Public))
489-
or (isinstance(key, keys.RSA) and
490-
not isinstance(enckey, keys.RSAPublic))):
486+
not isinstance(enckey, keys.ECDSA256P1Public))
487+
or (isinstance(key, keys.ECDSA384P1) and
488+
not isinstance(enckey, keys.ECDSA384P1Public))
489+
or (isinstance(key, keys.RSA) and
490+
not isinstance(enckey, keys.RSAPublic))):
491491
# FIXME
492492
raise click.UsageError("Signing and encryption must use the same "
493493
"type of key")

0 commit comments

Comments
 (0)