Skip to content

Commit

Permalink
ruff: Fix B018 Found useless expression.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Oct 30, 2023
1 parent 03d132e commit d546a39
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions zulip/integrations/log2zulip/log2zulip
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ try:

setup_path()
except ImportError:
try:
import scripts.lib.setup_path_on_import

scripts.lib.setup_path_on_import # Suppress unused import warning
except ImportError:
pass
with contextlib.suppress(ImportError):
import scripts.lib.setup_path_on_import # noqa: F401

sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../"))

Expand Down

0 comments on commit d546a39

Please sign in to comment.