From 5d2aad21bd99360d5f01f517d341bfd56fa11f6b Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Mon, 3 Jun 2024 10:29:21 +0200 Subject: [PATCH] Adjust coding style: if --- hld/Eval.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hld/Eval.hx b/hld/Eval.hx index 48c0a1e..bf87cb2 100644 --- a/hld/Eval.hx +++ b/hld/Eval.hx @@ -238,7 +238,7 @@ class Eval { case EBlock(el): var v : Value = { v : VNull, t : HDyn }; switch(el) { - case [EVar(id,_,e), ETernary(EBinop("==",EIdent(id2),EIdent("null")), EIdent("null"), EField(EIdent(id3),f))] if ( id == id2 && id == id3 ): + case [EVar(id,_,e), ETernary(EBinop("==",EIdent(id2),EIdent("null")), EIdent("null"), EField(EIdent(id3),f))] if( id == id2 && id == id3 ): // Special case for e?.field var ve : Value = evalExpr(e); if( compare(ve, v) != 0 ) { @@ -543,7 +543,7 @@ class Eval { return Reflect.compare(as, bs); case [VEnum(ac, avalues, _), VEnum(bc, bvalues, _)]: switch [a.t, b.t] { - case [HEnum(aproto), HEnum(bproto)] if (aproto == bproto): + case [HEnum(aproto), HEnum(bproto)] if( aproto == bproto ): if( ac == bc && avalues.length == bvalues.length ) { for( i in 0...avalues.length ) if( compare(avalues[i], bvalues[i]) != 0 )