]> git.donarmstrong.com Git - debbugs.git/commitdiff
Don't print strange-looking "Usertags are now: ." message when removing all usertags.
authorChris Lamb <chris@chris-lamb.co.uk>
Mon, 5 Aug 2019 08:58:22 +0000 (09:58 +0100)
committerDon Armstrong <don@donarmstrong.com>
Sun, 10 Jan 2021 05:05:57 +0000 (21:05 -0800)
scripts/service

index 7e4c2054bcf618b4ec4eb204dbc01d300183d203..cdb70bb2db049e75b9c092889a93ad4fb6ed7621 100755 (executable)
@@ -455,7 +455,11 @@ END
            } else {
                print {$transcript} "Usertags were: " . join(" ", @oldtags) . ".\n";
            }
-           print {$transcript} "Usertags are now: " . join(" ", @newtags) . ".\n";
+           if (@newtags == 0) {
+               print {$transcript} "There are now no usertags set.\n";
+           } else {
+               print {$transcript} "Usertags are now: " . join(" ", @newtags) . ".\n";
+           }
            Debbugs::User::write_usertags(\%ut, $user);
        }
     } elsif (!$control) {