Skip to content

Commit 08cf646

Browse files
author
Victoria Hall
committed
using isinstance, removed extra if check
1 parent a6b75ee commit 08cf646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure/functions/decorators/blob.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def __init__(self,
1717
**kwargs):
1818
self.path = path
1919
self.connection = connection
20-
if type(source) is BlobSource:
21-
self.source = source.value if source else None
20+
if isinstance(source, BlobSource):
21+
self.source = source.value
2222
else:
2323
self.source = source
2424
super().__init__(name=name, data_type=data_type)

0 commit comments

Comments
 (0)