mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	small refactorings
This commit is contained in:
		@@ -24,7 +24,7 @@ function moveBranchToParent(req) {
 | 
			
		||||
    const branchToMove = becca.getBranch(branchId);
 | 
			
		||||
 | 
			
		||||
    if (!parentBranch || !branchToMove) {
 | 
			
		||||
        throw new ValidationError(`One or both branches ${branchId}, ${parentBranchId} have not been found`);
 | 
			
		||||
        throw new ValidationError(`One or both branches '${branchId}', '${parentBranchId}' have not been found`);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return branchService.moveBranchToBranch(branchToMove, parentBranch, branchId);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user