Skip to content

Commit 6c449a4

Browse files
committed
style(lint): fix linting issues
1 parent 626eb02 commit 6c449a4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/future/future.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Future monad', () => {
5252
future: Future.of(() => Promise.resolve(2)),
5353
expected: {
5454
ifSuccess: (value: number) => expect(value).toBe(4),
55-
ifFailure: (error: Error) => assert.fail('Error should not be thrown'),
55+
ifFailure: (_: Error) => assert.fail('Error should not be thrown'),
5656
},
5757
},
5858
{

src/futurizable/futurizable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Future } from '../future/future';
1+
import { Future } from '../future';
22

33
export interface Futurizable<T> {
44
toFuture(): Future<T>;

src/try/try.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { Monad } from '../monad';
22
import { Matchable } from '../match';
3-
import { Futurizable } from "../futurizable";
3+
import { Futurizable } from '../futurizable';
44
import { Future } from '../future';
55

66
/**
77
* Abstract class representing a computation that may either result in a value or an error.
88
* @template T The type of the value.
99
*/
1010
abstract class Try<T> implements Monad<T>, Matchable<T, Error>, Futurizable<T> {
11-
1211
/**
1312
* Executes a function and returns a `Try` instance.
1413
* @template T The type of the value.

0 commit comments

Comments
 (0)