Skip to content

Commit

Permalink
Remove uncessary variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinezmaes committed Mar 15, 2024
1 parent 9e661a3 commit 1feaf78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/async/ior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ export namespace AsyncIor {
next = await gen.next(ior.val);
break;
case Ior.Kind.BOTH:
fsts =
fsts === undefined
? ior.fst
: (fsts = cmb(fsts, ior.fst));
fsts = fsts === undefined ? ior.fst : cmb(fsts, ior.fst);
next = await gen.next(ior.snd);
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/ior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ export namespace Ior {
next = gen.next(ior.val);
break;
case Kind.BOTH:
fsts =
fsts === undefined
? ior.fst
: (fsts = cmb(fsts, ior.fst));
fsts = fsts === undefined ? ior.fst : cmb(fsts, ior.fst);
next = gen.next(ior.snd);
}
}
Expand Down

0 comments on commit 1feaf78

Please sign in to comment.