mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed SonarQube issues.
This commit is contained in:
committed by
Akshay Joshi
parent
47479e5e5c
commit
8f7b30075e
@@ -77,7 +77,7 @@ export class Tree {
|
||||
}
|
||||
|
||||
async before(item, data) {
|
||||
return await this.tree.create(item.parent, data);
|
||||
await this.tree.create(item.parent, data);
|
||||
}
|
||||
|
||||
async update(item, data) {
|
||||
@@ -85,11 +85,11 @@ export class Tree {
|
||||
}
|
||||
|
||||
async remove(item) {
|
||||
return await this.tree.remove(item);
|
||||
await this.tree.remove(item);
|
||||
}
|
||||
|
||||
async append(item, data) {
|
||||
return await this.tree.create(item, data);
|
||||
await this.tree.create(item, data);
|
||||
}
|
||||
|
||||
async destroy() {
|
||||
|
||||
@@ -28,7 +28,7 @@ var initBrowserTree = async (pgBrowser) => {
|
||||
const host: IBasicFileSystemHost = {
|
||||
pathStyle: 'unix',
|
||||
getItems: async (path) => {
|
||||
return await mtree.readNode(path);
|
||||
return mtree.readNode(path);
|
||||
},
|
||||
sortComparator: (a: FileEntry | Directory, b: FileEntry | Directory) => {
|
||||
// No nee to sort columns
|
||||
|
||||
@@ -175,8 +175,7 @@ export class ManageTreeNodes {
|
||||
// Replace the table with the last partition as in reality partition node is not child of the table
|
||||
if(_partitions.length > 0) _parent_path[0] = _partitions[_partitions.length-1];
|
||||
|
||||
let _rev_arr = _parent_path.reverse();
|
||||
return _rev_arr.join("/");
|
||||
return _parent_path.reverse().join("/");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user