Skip to content

Commit 6ff223a

Browse files
committed
disposable format
1 parent 3b4e485 commit 6ff223a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type {Subscription} from "rxjs"
1+
import type { Subscription } from "rxjs"
22
import { DisposableLike } from "atom"
33

44
// convert rxjs Subscription to Atom DisposableLike (rename unsubscribe to dispose)
55
export function disposableFromSubscription(subs: Subscription): DisposableLike {
6-
return {...subs, dispose: subs.unsubscribe}
6+
return { ...subs, dispose: subs.unsubscribe }
77
}

0 commit comments

Comments
 (0)