Skip to content

Commit 1090133

Browse files
committed
disposable format
1 parent 803de3f commit 1090133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)