You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently success, failure, warning and bold do almost exactly the same thing, without applying DRY rule. They should use common code part, allowing for flexibility in future feature creation.
Create additional method, eg. _formatted_message(msg, color=1, bold=False), to support code reuse.
The text was updated successfully, but these errors were encountered:
Currently
success
,failure
,warning
andbold
do almost exactly the same thing, without applying DRY rule. They should use common code part, allowing for flexibility in future feature creation.Create additional method, eg.
_formatted_message(msg, color=1, bold=False)
, to support code reuse.The text was updated successfully, but these errors were encountered: