Skip to content

Commit

Permalink
fix: linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 26, 2020
1 parent ff3b10d commit ab0b433
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/factories/createPlanton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const createPlanton = (configuration: PlantonConfiguration): Planton => {

let active = true;

// eslint-disable-next-line complexity
(async () => {
// eslint-disable-next-line no-unmodified-loop-condition
while (active) {
Expand Down Expand Up @@ -166,7 +167,7 @@ const createPlanton = (configuration: PlantonConfiguration): Planton => {

if (!Array.isArray(taskInstructions)) {
events.emit('error', {
error: new UnexpectedTaskInstructionsError(task.name, taskInstructions),
error: new UnexpectedTaskInstructionsError(task.name || '', taskInstructions),
taskName: task.name || '',
});

Expand All @@ -180,7 +181,7 @@ const createPlanton = (configuration: PlantonConfiguration): Planton => {

if (taskInstructions.length > limit) {
events.emit('error', {
error: new UnexpectedTaskInstructionsError(task.name, taskInstructions),
error: new UnexpectedTaskInstructionsError(task.name || '', taskInstructions),
taskName: task.name || '',
});

Expand All @@ -197,7 +198,7 @@ const createPlanton = (configuration: PlantonConfiguration): Planton => {
for (const taskInstruction of taskInstructions) {
if (typeof taskInstruction !== 'string') {
events.emit('error', {
error: new UnexpectedTaskInstructionsError(task.name, taskInstructions),
error: new UnexpectedTaskInstructionsError(task.name || '', taskInstructions),
taskName: task.name || '',
});

Expand Down

0 comments on commit ab0b433

Please sign in to comment.