Fixed some SonarQube issues.

This commit is contained in:
Akshay Joshi
2021-03-02 14:53:05 +05:30
parent faa66f1636
commit 008bc6da28
12 changed files with 46 additions and 43 deletions

View File

@@ -557,10 +557,9 @@ define([
this.updateInvalid();
this.$el.find('.btn').on('keyup', (e)=>{
switch(e.keyCode) {
case 32: /* Spacebar click */
/* Spacebar click */
if (e.keyCode == 32) {
$(e.currentTarget).trigger('click');
break;
}
});
return this;

View File

@@ -118,7 +118,7 @@ export class ModelValidation {
} catch(e) {
try {
new Address6(ipAddress);
} catch(e) {
} catch(ex) {
this.err['hostaddr'] = msg;
this.errmsg = msg;
}