diff options
| author | Pavel Vomacka <pvomacka@redhat.com> | 2016-07-25 14:42:50 +0200 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2016-11-10 18:58:38 +0100 |
| commit | de8cb7585b652fd1a61e3020e37192cb1db74f46 (patch) | |
| tree | ca23a407f39b64b4d99186fb9e403b8089f5bb5d /install | |
| parent | fa3982c7c82add3d201aec860cb981a595f10be9 (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.js | 4 |
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, |
