]> 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>
Thu, 11 Mar 2021 01:03:46 +0000 (17:03 -0800)
scripts/service

index a14691aa1c64b5ae84ad130ecf15898ae24794ed..da6474a48da9d6fc9d52c8997c69b07fbbb55dfc 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) {