summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPavel Vomacka <pvomacka@redhat.com>2016-07-25 14:42:50 +0200
committerPetr Vobornik <pvoborni@redhat.com>2016-11-10 18:58:38 +0100
commitde8cb7585b652fd1a61e3020e37192cb1db74f46 (patch)
treeca23a407f39b64b4d99186fb9e403b8089f5bb5d /install
parentfa3982c7c82add3d201aec860cb981a595f10be9 (diff)
Coverity - identical code for different branches
In both cases when the condition is true or false ut is set the same value. Changed to assign the value directly. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'install')
-rw-r--r--install/ui/src/freeipa/topology_graph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/topology_graph.js b/install/ui/src/freeipa/topology_graph.js
index 4bc366864..9f549133b 100644
--- a/install/ui/src/freeipa/topology_graph.js
+++ b/install/ui/src/freeipa/topology_graph.js
@@ -325,8 +325,8 @@ topology_graph.TopoGraph = declare([Evented], {
off = dir ? -1 : 1, // determines shift direction of curve
ns = 5, // shift on normal vector
s = target_count > 1 ? 1 : 0, // shift from center?
- spad = d.left ? 18 : 18, // source padding
- tpad = d.right ? 18 : 18, // target padding
+ spad = 18, // source padding
+ tpad = 18, // target padding
sourceX = d.source.x + (spad * ux) + off * nx * ns * s,
sourceY = d.source.y + (spad * uy) + off * ny * ns * s,
targetX = d.target.x - (tpad * ux) + off * nx * ns * s,