Skip to content

Commit 66a8fb1

Browse files
committed
cmdhandler.d: minor cleanup
1 parent cb63ee1 commit 66a8fb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/cmdhandler.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,9 @@ final class CommandHandler
565565

566566
if (user.obfuscation_type == ObfuscationType.rotated)
567567
obfuscation_type = "rotated";
568+
568569
else if (user.obfuscation_type != ObfuscationType.none)
569-
obfuscation_type = (cast(uint) user.obfuscation_type).text;
570+
obfuscation_type = text(cast(uint) user.obfuscation_type);
570571
}
571572
else {
572573
const user_stats = server.db.user_stats(username);
@@ -699,7 +700,7 @@ final class CommandHandler
699700

700701
else if (user.obfuscation_type != ObfuscationType.none)
701702
obfuscation_type = text(
702-
quot, (cast(uint) user.obfuscation_type).text, quot
703+
quot, cast(uint) user.obfuscation_type, quot
703704
);
704705

705706
Appender!string output;

0 commit comments

Comments
 (0)