ソースを参照

LibPDF: Replace `if (a) VERIFY(0)` with `VERIFY(!a)`

No behavior change.
Nico Weber 1 年間 前
コミット
f2f07c3a80
1 ファイル変更1 行追加2 行削除
  1. 1 2
      Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp

+ 1 - 2
Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp

@@ -114,8 +114,7 @@ PDFErrorOr<Vector<ByteBuffer>> PS1FontProgram::parse_subroutines(Reader& reader)
 
     while (reader.remaining()) {
         auto word = TRY(parse_word(reader));
-        if (word.is_empty())
-            VERIFY(0);
+        VERIFY(!word.is_empty());
 
         if (word == "dup") {
             auto index = TRY(parse_int(reader));