Don't run more passes if no variant. Fixes #79

This commit is contained in:
Jaiden Mispy 2016-01-13 00:34:38 -08:00
parent 473d84ba22
commit 8320576ab3

View file

@ -89,7 +89,11 @@ module Ebooks
break if variant
end
tikis = variant if variant
# If we failed to produce a variation from any alternative, there
# is no use running additional passes-- they'll have the same result.
break if variant.nil?
tikis = variant
end
tikis