Skip to content

Commit

Permalink
Remove redundant if: referenceLayerName is always set now
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Sep 18, 2023
1 parent da0f128 commit 9a7b2c1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/fontra/client/core/glyph-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,10 @@ export class VariableGlyphController {
break;
}
}
if (referenceLayerName) {
this._sourceInterpolationStatus = this.sources.map((source) => {
const error = errors[referenceLayerName][source.layerName];
return error ? { error } : {};
});
} else {
this._sourceInterpolationStatus = this.sources.map((source) => {
return {};
});
}
this._sourceInterpolationStatus = this.sources.map((source) => {
const error = errors[referenceLayerName][source.layerName];
return error ? { error } : {};
});
}
return this._sourceInterpolationStatus;
}
Expand Down

0 comments on commit 9a7b2c1

Please sign in to comment.