Don't run more passes if no variant. Fixes #79
This commit is contained in:
parent
473d84ba22
commit
8320576ab3
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ module Ebooks
|
||||||
break if variant
|
break if variant
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
tikis
|
tikis
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue