Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Dec 7, 2023
1 parent 35a1e7f commit b3a6099
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sigstore/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,7 @@ def to_bundle(self) -> Bundle:

if isinstance(self.content, MessageSignature):
bundle.message_signature = self.content
elif isinstance(self.content, Envelope):
bundle.dsse_envelope = self.content
else:
raise ValueError
bundle.dsse_envelope = self.content

return bundle

0 comments on commit b3a6099

Please sign in to comment.