[latex3-commits] [git/LaTeX3-latex3-latex3] master: Simplify a conditional (a9dc418d3)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Aug 26 21:28:03 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/a9dc418d39c7bd95ea707cbc196a073ef6e49c57

>---------------------------------------------------------------

commit a9dc418d39c7bd95ea707cbc196a073ef6e49c57
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Aug 26 20:27:33 2020 +0100

    Simplify a conditional
    
    As there is now a version check for in l3backend,
    we know the bool will exist.
    
    Also, we don't need to leave this test: it must be
    set at the point we run the code.


>---------------------------------------------------------------

a9dc418d39c7bd95ea707cbc196a073ef6e49c57
 l3backend/l3backend-basics.dtx | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/l3backend/l3backend-basics.dtx b/l3backend/l3backend-basics.dtx
index e2aa80bd7..c61728867 100644
--- a/l3backend/l3backend-basics.dtx
+++ b/l3backend/l3backend-basics.dtx
@@ -182,15 +182,13 @@
 % This is held until the start of shipout such that a document with no
 % actual output does not write anything.
 %    \begin{macrocode}
-\cs_if_exist:NTF \AtBeginDvi
-  { \AtBeginDvi }
-  { \use:n }
-    {
-      \bool_lazy_and:nnT
-        { \cs_if_exist_p:N \g__kernel_backend_header_bool }
-        { \g__kernel_backend_header_bool }
+\bool_if:NT \g__kernel_backend_header_bool
+  {
+    \cs_if_exist:NTF \AtBeginDvi
+      { \AtBeginDvi }
+      { \use:n }
         { \__kernel_backend_literal:n { header = l3backend-dvips.pro } }
-    }
+  }
 %    \end{macrocode}
 %
 % \begin{macro}





More information about the latex3-commits mailing list.