compact format ccolor

This commit is contained in:
Alexander Zhirov 2023-06-06 00:54:21 +03:00
parent 43302ab0ea
commit a1bcdf5b0b
1 changed files with 4 additions and 4 deletions

View File

@ -99,10 +99,10 @@ version(Windows) {
];
void writestdout(string time, string message, int level) {
writeln("%s %s".format(time,
this._ccolor ?
this._color[level].format(this._type[level], message) :
"%s %s".format(this._type[level], message)
writeln(
"%s %s".format(
time,
(this._ccolor ? this._color[level] : "%s %s").format(this._type[level], message)
)
);
}