mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 06:53:58 +01:00
cosntruct: Elide empty string append in console recording.
This commit is contained in:
parent
499bec0a1a
commit
affd1f2913
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ construct::console::handle_line_bymodule()
|
||||||
append(*record_fd, string_view(cmdline));
|
append(*record_fd, string_view(cmdline));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty(str))
|
||||||
|
return;
|
||||||
|
|
||||||
append(*record_fd, str);
|
append(*record_fd, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue