From e686e8e1a1f5adbf86e85b08744317fd58ae7864 Mon Sep 17 00:00:00 2001 From: SPGoding Date: Mon, 25 May 2020 23:52:28 -0500 Subject: [PATCH] Some trivial stylistic changes --- src/nodes/AbstractNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodes/AbstractNode.ts b/src/nodes/AbstractNode.ts index 7fc4f55d..c3336736 100644 --- a/src/nodes/AbstractNode.ts +++ b/src/nodes/AbstractNode.ts @@ -34,8 +34,8 @@ export abstract class AbstractNode implements INode { transformMod: (v: T) => T constructor(def: () => T, mods?: NodeMods) { - this.defaultMod = mods?.default ? mods.default : def - this.transformMod = mods?.transform ? mods.transform : (v: T) => v + this.defaultMod = mods?.default ?? def + this.transformMod = mods?.transform ?? ((v: T) => v) } setParent(parent: INode) {