mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'Unexpected empty arrow function' reported by SonarQube.
This commit is contained in:
@@ -54,7 +54,7 @@ export default class ERDCore {
|
||||
this.registerKeyAction(new ZoomCanvasAction({inverseZoom: true}));
|
||||
}
|
||||
|
||||
initializeModel(data, callback=()=>{}) {
|
||||
initializeModel(data, callback=()=>{/*This is intentional (SonarQube)*/}) {
|
||||
let model = new ERDModel();
|
||||
if(data) {
|
||||
model.deserializeModel(data, this.engine);
|
||||
@@ -306,7 +306,7 @@ export default class ERDCore {
|
||||
}
|
||||
|
||||
addOneToManyLink(onetomanyData) {
|
||||
let newFk = new ForeignKeySchema({}, {}, ()=>{}, {autoindex: false});
|
||||
let newFk = new ForeignKeySchema({}, {}, ()=>{/*This is intentional (SonarQube)*/}, {autoindex: false});
|
||||
let tableNodesDict = this.getModel().getNodesDict();
|
||||
let fkColumn = {};
|
||||
let sourceNode = tableNodesDict[onetomanyData.referenced_table_uid];
|
||||
@@ -361,10 +361,10 @@ export default class ERDCore {
|
||||
let rightNode = nodes[manytomanyData.right_table_uid];
|
||||
|
||||
let tableObj = new TableSchema({}, {}, {
|
||||
constraints:()=>{},
|
||||
columns:()=>new ColumnSchema(()=>{}, {}, {}, {}),
|
||||
vacuum_settings:()=>{},
|
||||
}, ()=>{}, ()=>{}, ()=>{}, ()=>{});
|
||||
constraints:()=>{/*This is intentional (SonarQube)*/},
|
||||
columns:()=>new ColumnSchema(()=>{/*This is intentional (SonarQube)*/}, {}, {}, {}),
|
||||
vacuum_settings:()=>{/*This is intentional (SonarQube)*/},
|
||||
}, ()=>{/*This is intentional (SonarQube)*/}, ()=>{/*This is intentional (SonarQube)*/}, ()=>{/*This is intentional (SonarQube)*/}, ()=>{/*This is intentional (SonarQube)*/});
|
||||
|
||||
let tableData = tableObj.getNewData({
|
||||
name: `${leftNode.getData().name}_${rightNode.getData().name}`,
|
||||
@@ -558,8 +558,8 @@ export default class ERDCore {
|
||||
event: {
|
||||
...event,
|
||||
key: '',
|
||||
preventDefault: () => {},
|
||||
stopPropagation: () => {},
|
||||
preventDefault: () => {/*This is intentional (SonarQube)*/},
|
||||
stopPropagation: () => {/*This is intentional (SonarQube)*/},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ export default class DialogWrapper {
|
||||
}}
|
||||
onSave={this.onSaveClick.bind(this)}
|
||||
onClose={()=>self.close()}
|
||||
onDataChange={()=>{}}
|
||||
onDataChange={()=>{/*This is intentional (SonarQube)*/}}
|
||||
hasSQL={false}
|
||||
disableSqlHelp={true}
|
||||
disableDialogHelp={true}
|
||||
|
||||
@@ -39,7 +39,7 @@ export default class TableDialog {
|
||||
let treeNodeInfo = undefined;
|
||||
|
||||
let columnSchema = new ColumnSchema(
|
||||
()=>{},
|
||||
()=>{/*This is intentional (SonarQube)*/},
|
||||
treeNodeInfo,
|
||||
()=>colTypes,
|
||||
()=>[],
|
||||
|
||||
@@ -433,7 +433,7 @@ export default class BodyWidget extends React.Component {
|
||||
});
|
||||
this.diagram.repaint();
|
||||
},
|
||||
() => {}
|
||||
() => {/*This is intentional (SonarQube)*/}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user