mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed some SonarQube issues.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -118,7 +118,7 @@ export class ModelValidation {
|
||||
} catch(e) {
|
||||
try {
|
||||
new Address6(ipAddress);
|
||||
} catch(e) {
|
||||
} catch(ex) {
|
||||
this.err['hostaddr'] = msg;
|
||||
this.errmsg = msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user