[util] Remove unnecessary check
This commit is contained in:
parent
fd0778aa2a
commit
23298bc846
|
@ -139,8 +139,7 @@ text_options_t::get_line (unsigned int *len)
|
||||||
|
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
if (!text_file)
|
assert (text_file);
|
||||||
fail (true, "At least one of text or text-file must be set");
|
|
||||||
|
|
||||||
if (0 != strcmp (text_file, "-"))
|
if (0 != strcmp (text_file, "-"))
|
||||||
fp = fopen (text_file, "r");
|
fp = fopen (text_file, "r");
|
||||||
|
|
Loading…
Reference in New Issue