Skip to content

Commit

Permalink
clean up code in operation.py (#2688)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored Jul 10, 2024
1 parent 771f601 commit afd1a58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .chronus/changes/fix_dup_read-2024-6-10-14-46-24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@azure-tools/typespec-python"
---

clean up code in operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def imports( # pylint: disable=too-many-branches, disable=too-many-statements
"ResourceExistsError",
"ResourceNotModifiedError",
]
if not (self.stream_value is False):
if self.stream_value:
errors.extend(["StreamConsumedError", "StreamClosedError"])
for error in errors:
file_import.add_submodule_import("exceptions", error, ImportType.SDKCORE)
Expand Down

0 comments on commit afd1a58

Please sign in to comment.