Fixed code smell 'Unexpected empty arrow function' reported by SonarQube.

This commit is contained in:
Akshay Joshi
2022-01-12 18:59:21 +05:30
parent 4e414f57e6
commit 3f7e921cce
18 changed files with 41 additions and 41 deletions

View File

@@ -256,8 +256,8 @@ describe('ERDCore', ()=>{
spyOn(erdCoreObj, 'getNewLink').and.callFake(function() {
return {
setSourcePort: function() {},
setTargetPort: function() {},
setSourcePort: function() {/*This is intentional (SonarQube)*/},
setTargetPort: function() {/*This is intentional (SonarQube)*/},
};
});
spyOn(erdCoreObj, 'getNewPort').and.returnValue({id: 'id'});

View File

@@ -124,7 +124,7 @@ describe('fileSelectDialog', function () {
};
spyOn(Alertify, 'fileSelectionDlg').and.callFake(function() {
this.resizeTo = function() {};
this.resizeTo = function() {/*This is intentional (SonarQube)*/};
return this;
});
@@ -140,7 +140,7 @@ describe('fileSelectDialog', function () {
};
spyOn(Alertify, 'createModeDlg').and.callFake(function() {
this.resizeTo = function() {};
this.resizeTo = function() {/*This is intentional (SonarQube)*/};
return this;
});
@@ -208,7 +208,7 @@ describe('fileSelectDialog', function () {
};
spyOn(Alertify, 'fileStorageDlg').and.callFake(function() {
this.resizeTo = function() {};
this.resizeTo = function() {/*This is intentional (SonarQube)*/};
return this;
});