Skip to content

Commit

Permalink
remove unecessary try
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiblaga89 committed Oct 6, 2023
1 parent 293b2f4 commit 2c2d865
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/tasks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logTask, logInitTask, logExitTask, chalk, logRaw, logInfo, logWarning, logError } from '../logger';
import { logTask, logInitTask, logExitTask, chalk, logRaw, logInfo, logWarning } from '../logger';
import { executePipe } from '../buildHooks';
import { checkIfProjectAndNodeModulesExists } from '../npm';
import {
Expand Down Expand Up @@ -303,7 +303,6 @@ export const executeTask = async (
originTask?: string,
isFirstTask?: boolean
) => {
try {
const pt = parentTask ? `=> [${parentTask}] ` : '';
c._currentTask = task;
logInitTask(`${pt}=> [${chalk().bold.rgb(170, 106, 170)(task)}]`);
Expand Down Expand Up @@ -331,9 +330,6 @@ To avoid that test your task code against parentTask and avoid executing same ta
c._currentTask = parentTask;
const prt = parentTask ? `<= [${chalk().rgb(170, 106, 170)(parentTask)}] ` : '';
logExitTask(`${prt}<= ${task}`);
} catch (e) {
logError(e, true);
}
};

export const executeOrSkipTask = async (c: RnvContext, task: string, parentTask: string, originTask?: string) => {
Expand Down

0 comments on commit 2c2d865

Please sign in to comment.