mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
Remove cases where an array is used in a boolean context
This commit is contained in:
parent
0d51ebd128
commit
13f343334c
8 changed files with 12 additions and 12 deletions
|
@ -365,7 +365,7 @@ T enforce(T, Dg, string file = __FILE__, size_t line = __LINE__)
|
|||
|
||||
private void bailOut(string file, size_t line, in char[] msg) @safe pure
|
||||
{
|
||||
throw new Exception(msg ? msg.idup : "Enforcement failed", file, line);
|
||||
throw new Exception(msg.ptr ? msg.idup : "Enforcement failed", file, line);
|
||||
}
|
||||
|
||||
unittest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue