mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix double neg
This commit is contained in:
@@ -20,7 +20,7 @@ const is_result_eq = (a,b) => a.result == null
|
|||||||
? b.result == null
|
? b.result == null
|
||||||
: b.result != null
|
: b.result != null
|
||||||
&& a.result.ok == b.result.ok
|
&& a.result.ok == b.result.ok
|
||||||
&& !!a.result.is_error_origin == !!b.result.is_error_origin
|
&& !(!a.result.is_error_origin) == !(!b.result.is_error_origin)
|
||||||
|
|
||||||
const node_to_color = node => ({
|
const node_to_color = node => ({
|
||||||
index: node.index,
|
index: node.index,
|
||||||
@@ -31,7 +31,7 @@ const node_to_color = node => ({
|
|||||||
? null
|
? null
|
||||||
: node.result.ok
|
: node.result.ok
|
||||||
? {ok: true}
|
? {ok: true}
|
||||||
: {ok: false, is_error_origin: !!node.result.is_error_origin}
|
: {ok: false, is_error_origin: !(!node.result.is_error_origin)}
|
||||||
})
|
})
|
||||||
|
|
||||||
const is_short_circuit = node =>
|
const is_short_circuit = node =>
|
||||||
|
|||||||
Reference in New Issue
Block a user