Skip to content

Commit 655bbda

Browse files
committed
Use if _ instead of case _ of
1 parent e4185a9 commit 655bbda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Halogen/VDom/DOM/Prop.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ unsafeGetProperty = Util.unsafeGetAny
194194

195195
removeProperty EFn.EffectFn2 String DOM.Element Unit
196196
removeProperty = EFn.mkEffectFn2 \key el →
197-
EFn.runEffectFn3 Util.hasAttribute null key el >>= case _ of
198-
true -> EFn.runEffectFn3 Util.removeAttribute null key el
199-
false -> case typeOf (Fn.runFn2 Util.unsafeGetAny key el) of
197+
EFn.runEffectFn3 Util.hasAttribute null key el >>= if _
198+
then EFn.runEffectFn3 Util.removeAttribute null key el
199+
else case typeOf (Fn.runFn2 Util.unsafeGetAny key el) of
200200
"string"EFn.runEffectFn3 Util.unsafeSetAny key "" el
201201
_ → case key of
202202
"rowSpan"EFn.runEffectFn3 Util.unsafeSetAny key 1 el

0 commit comments

Comments
 (0)