From 23298bc846d34eb6a5465511df6219e3d94c3103 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 11 Aug 2021 18:58:25 -0600 Subject: [PATCH] [util] Remove unnecessary check --- util/text-options.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/text-options.hh b/util/text-options.hh index c9b04cb9a..4fce69ce9 100644 --- a/util/text-options.hh +++ b/util/text-options.hh @@ -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");