summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-25 14:54:07 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-25 14:54:07 +0200
commit3a2b6eac9022524baab2d52ce9ba4aef819bd574 (patch)
treead99613dcb0353bb82dfcf58b5e03547730c4642 /otfl-font-nms.lua
parentb733e149bb606d57499115e90318b00c6fe19bc3 (diff)
downloadluaotfload-3a2b6eac9022524baab2d52ce9ba4aef819bd574.tar.gz
remove another indexing duplication
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index b5c954d..1f01693 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -371,10 +371,8 @@ local function load_font(filename, fontnames, newfontnames, texmf)
if not fullinfo then
return
end
- local index
- if newstatus[basefile].index[1] then
- index = newstatus[basefile].index[1]
- else
+ local index = newstatus[basefile].index[1]
+ if not index then
index = #newmappings+1
end
newmappings[index] = fullinfo