Deprecate enforce ex (#377)

Deprecate enforce ex
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
BBasile 2018-09-06 01:01:08 +02:00 committed by The Dlang Bot
parent 4256f988bf
commit 56097fd106
1 changed files with 2 additions and 2 deletions

View File

@ -85,9 +85,9 @@ else
void handleBooleans(string option, string value)
{
import dfmt.editorconfig : OptionalBoolean;
import std.exception : enforceEx;
import std.exception : enforce;
enforceEx!GetOptException(value == "true" || value == "false", "Invalid argument");
enforce!GetOptException(value == "true" || value == "false", "Invalid argument");
immutable OptionalBoolean optVal = value == "true" ? OptionalBoolean.t
: OptionalBoolean.f;
switch (option)