Skip to content
Snippets Groups Projects
Commit 4bbc62bb authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: stringOps - getVariable function - make use of the allowEmpty flag

parent acc048a2
Branches
Tags
No related merge requests found
......@@ -308,7 +308,7 @@ Foam::string Foam::stringOps::getVariable
}
}
if (value.empty())
if (!allowEmpty && value.empty())
{
FatalIOErrorInFunction
(
......@@ -317,7 +317,8 @@ Foam::string Foam::stringOps::getVariable
<< name << exit(FatalIOError);
}
}
else
if (!allowEmpty && value.empty())
{
FatalIOErrorInFunction
(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment