Fixed small syntax error

pull/5194/head
Julian Laubstein 5 years ago
parent 0468dcc30c
commit f6fbea7a42

@ -62,7 +62,7 @@ export function subscribe(store, ...callbacks) {
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
} }
export function get_store_value<T, S extends Readable<T>>(store: S): T { { export function get_store_value<T, S extends Readable<T>>(store: S): T {
let value; let value;
subscribe(store, _ => value = _)(); subscribe(store, _ => value = _)();
return value; return value;
@ -152,4 +152,4 @@ export const has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj,
export function action_destroyer(action_result) { export function action_destroyer(action_result) {
return action_result && is_function(action_result.destroy) ? action_result.destroy : noop; return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
} }

Loading…
Cancel
Save