Skip to content

Commit

Permalink
Make addItemwise and subItemwise the same
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Sep 16, 2023
1 parent 9886bdb commit 043e092
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fontra/client/core/var-funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { VariationError } from "./errors.js";
export function addItemwise(a, b) {
if (typeof a !== typeof b) {
throw new VariationError(`incompatible object types: typeof ${a} != typeof ${b}`);
}
if (typeof a === "string") {
} else if (typeof a === "string") {
if (a !== b) {
throw new VariationError(`unexpected different strings: ${a} != ${b}`);
}
Expand Down

0 comments on commit 043e092

Please sign in to comment.