From: anushadasari Date: Mon, 26 Aug 2019 11:34:58 +0000 (+0530) Subject: Add a semicolon at the end of this statement X-Git-Tag: 5.0.1~8^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=25a04acd7dda99fd730385745d25bf852790be0d;p=vid.git Add a semicolon at the end of this statement In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line. Issue-ID: VID-597 Change-Id: Ibe8ce68b67f4c48adfab0a382487e308093cdd01 Signed-off-by: anushadasari --- diff --git a/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js b/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js index 08ac8a3f8..382d96e43 100755 --- a/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js +++ b/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js @@ -6,13 +6,13 @@ function loadjscssfile(filename, filetype){ script.async = false; document.head.appendChild(script); }else if (filetype=="css"){ //if filename is an external CSS file - var fileref=document.createElement("link") - fileref.setAttribute("rel", "stylesheet") - fileref.setAttribute("type", "text/css") - fileref.setAttribute("async", false) - fileref.setAttribute("href", filename) + var fileref=document.createElement("link"); + fileref.setAttribute("rel", "stylesheet"); + fileref.setAttribute("type", "text/css"); + fileref.setAttribute("async", false); + fileref.setAttribute("href", filename); document.head.appendChild(fileref); - } + }; } function loadResource(){