Fixed SonarQube issues.

This commit is contained in:
Khushboo Vashi
2022-01-27 17:22:19 +05:30
committed by Akshay Joshi
parent 47479e5e5c
commit 8f7b30075e
3 changed files with 5 additions and 6 deletions

View File

@@ -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() {

View File

@@ -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

View File

@@ -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("/");
}
}