Skip to content

Commit

Permalink
lua minor perf: return nil instead of unprocessed copy
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Oct 5, 2023
1 parent da2ab85 commit 59621bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/filters/crossref/equations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function process_equations(blockEl)

-- do nothing if there is no math herein
if inlines:find_if(isDisplayMath) == nil then
return blockEl
return nil
end

local mathInlines = nil
Expand Down

0 comments on commit 59621bd

Please sign in to comment.