Skip to content

Commit

Permalink
style: [FC-0047] refactor condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedielnitsevIvan committed Jul 25, 2024
1 parent b18c55a commit c1ea794
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edx_ace/channel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,7 @@ def get_channel_for_message(channel_type, message):
return channel

# Else the normal path: use the preferred channel for this message type
return possible_channels[0] if possible_channels else channels_map.get_default_channel(channel_type)
if possible_channels:
return possible_channels[0]
else:
return channels_map.get_default_channel(channel_type)

Check warning on line 201 in edx_ace/channel/__init__.py

View check run for this annotation

Codecov / codecov/patch

edx_ace/channel/__init__.py#L201

Added line #L201 was not covered by tests

0 comments on commit c1ea794

Please sign in to comment.