Fixed SonarQube issues.
parent
47479e5e5c
commit
8f7b30075e
|
|
@ -77,7 +77,7 @@ export class Tree {
|
||||||
}
|
}
|
||||||
|
|
||||||
async before(item, data) {
|
async before(item, data) {
|
||||||
return await this.tree.create(item.parent, data);
|
await this.tree.create(item.parent, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
async update(item, data) {
|
async update(item, data) {
|
||||||
|
|
@ -85,11 +85,11 @@ export class Tree {
|
||||||
}
|
}
|
||||||
|
|
||||||
async remove(item) {
|
async remove(item) {
|
||||||
return await this.tree.remove(item);
|
await this.tree.remove(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
async append(item, data) {
|
async append(item, data) {
|
||||||
return await this.tree.create(item, data);
|
await this.tree.create(item, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
async destroy() {
|
async destroy() {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ var initBrowserTree = async (pgBrowser) => {
|
||||||
const host: IBasicFileSystemHost = {
|
const host: IBasicFileSystemHost = {
|
||||||
pathStyle: 'unix',
|
pathStyle: 'unix',
|
||||||
getItems: async (path) => {
|
getItems: async (path) => {
|
||||||
return await mtree.readNode(path);
|
return mtree.readNode(path);
|
||||||
},
|
},
|
||||||
sortComparator: (a: FileEntry | Directory, b: FileEntry | Directory) => {
|
sortComparator: (a: FileEntry | Directory, b: FileEntry | Directory) => {
|
||||||
// No nee to sort columns
|
// 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
|
// 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];
|
if(_partitions.length > 0) _parent_path[0] = _partitions[_partitions.length-1];
|
||||||
|
|
||||||
let _rev_arr = _parent_path.reverse();
|
return _parent_path.reverse().join("/");
|
||||||
return _rev_arr.join("/");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue