coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
789 stars 138 forks source link

Use another augmented assignment statement #124

Closed elfring closed 12 months ago

elfring commented 2 years ago

:eyes: Some source code analysis tools can help to find opportunities for improving software components. :thought_balloon: I propose to increase the usage of augmented assignment statements accordingly.

diff --git a/myfitnesspal/commands.py b/myfitnesspal/commands.py
index e60aed1..91935f3 100644
--- a/myfitnesspal/commands.py
+++ b/myfitnesspal/commands.py
@@ -27,7 +27,7 @@ def get_command_list():
             continue
         message = "{}: {}".format(name, info["description"])
         if info["aliases"]:
-            message = message + "; aliases: {}".format(", ".join(info["aliases"]))
+            message += "; aliases: {}".format(", ".join(info["aliases"]))
         command_lines.append(message)
     prolog = "available commands:\n"
     return prolog + "\n".join(["  " + cmd for cmd in command_lines])