[util] Remove unnecessary check

This commit is contained in:
Behdad Esfahbod 2021-08-11 18:58:25 -06:00
parent fd0778aa2a
commit 23298bc846
1 changed files with 1 additions and 2 deletions

View File

@ -139,8 +139,7 @@ text_options_t::get_line (unsigned int *len)
if (!fp)
{
if (!text_file)
fail (true, "At least one of text or text-file must be set");
assert (text_file);
if (0 != strcmp (text_file, "-"))
fp = fopen (text_file, "r");