Skip to content

Commit

Permalink
The classical style check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Kowlin committed Jan 6, 2025
1 parent 789f695 commit 36f4e10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion redbot/core/utils/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ def __init__(
self.title = _("Set API Keys")
self.keys_label = _("Keys and tokens")
if self.default_service is not None:
truncated_service_name = (self.default_service[:20] + '…') if len(self.default_service) > 20 else self.default_service
truncated_service_name = (
(self.default_service[:20] + "…")
if len(self.default_service) > 20
else self.default_service
)
self.keys_label = _("Keys and tokens for {service}").format(
service=truncated_service_name
)
Expand Down

0 comments on commit 36f4e10

Please sign in to comment.