Merge pull request #226 from frju365/patch-1

[fix] Return nothing if argument is already set.
This commit is contained in:
Alexandre Aubin 2020-04-01 19:30:38 +02:00 committed by GitHub
commit d1ea1b606f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,8 @@ class CommentParameter(_ExtraParameter):
skipped_iface = ["api"] skipped_iface = ["api"]
def __call__(self, message, arg_name, arg_value): def __call__(self, message, arg_name, arg_value):
if arg_value:
return
return msignals.display(m18n.n(message)) return msignals.display(m18n.n(message))
@classmethod @classmethod