fix code smells and vulnerabilities 60/118760/2
authormkidd <michael.kidd@est.tech>
Mon, 1 Mar 2021 11:13:06 +0000 (11:13 +0000)
committermkidd <michael.kidd@est.tech>
Wed, 3 Mar 2021 20:00:01 +0000 (20:00 +0000)
commite5b070acb072d62d7f86e50e51b6b1586b85e307
tree9501022bcb1d1f725ac5cadfc577fe44641f16a7
parent4f6e6490aa469135379fd2814326e44652caf52f
fix code smells and vulnerabilities

used await method inside an if statement that now runs the same code as the accompanying finally block.
removed unused variables from ApexContextAlbumEditForm.js
refactored vars that were redelared - this was not needed as there were variables of this name within scope
added ! operator

Issue-ID: POLICY-3095
Signed-off-by: mkidd <michael.kidd@est.tech>
Change-Id: Idadf4dd6938be5410fef62140de8b265bbaca138
gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumEditForm.js
gui-pdp-monitoring/src/main/java/org/onap/policy/gui/pdp/monitoring/PdpMonitoringMain.java