Skip to content

Commit

Permalink
Simplify, avoid double use of layerNameMapping variable
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Aug 30, 2023
1 parent 5094cb3 commit 066ab41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fontra/backends/designspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,10 @@ async def putGlyph(self, glyphName, glyph, unicodes):
defaultLayerGlyph = readGlyphOrCreate(
self.defaultUFOLayer.glyphSet, glyphName, unicodes
)
layerNameMapping = defaultLayerGlyph.lib.get(LAYER_NAME_MAPPING_LIB_KEY, {})

revLayerNameMapping = reverseSparseDict(layerNameMapping)
revLayerNameMapping = reverseSparseDict(
defaultLayerGlyph.lib.get(LAYER_NAME_MAPPING_LIB_KEY, {})
)

sourceNameMapping = {}
layerNameMapping = {}
Expand Down

0 comments on commit 066ab41

Please sign in to comment.