Skip to content

Commit

Permalink
using isinstance, removed extra if check
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoria Hall committed Oct 9, 2024
1 parent a6b75ee commit 08cf646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/functions/decorators/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __init__(self,
**kwargs):
self.path = path
self.connection = connection
if type(source) is BlobSource:
self.source = source.value if source else None
if isinstance(source, BlobSource):
self.source = source.value
else:
self.source = source
super().__init__(name=name, data_type=data_type)
Expand Down

0 comments on commit 08cf646

Please sign in to comment.