From cb47a9dacd248c7a57d2e1d8bfffe2b8f61c48d5 Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Fri, 25 Feb 2022 10:55:41 +0100 Subject: [PATCH] docs(readme): format [skip ci] --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2acb25ad..462c1e7f 100644 --- a/README.md +++ b/README.md @@ -355,7 +355,10 @@ const subscriptionsClient = createClient({ // both fetch and subscribe can be handled through one implementation // to understand why we return Observable, please see: https://github.com/enisdenjo/graphql-ws/issues/316#issuecomment-1047605774 -function fetchOrSubscribe(operation: RequestParameters, variables: Variables): Observable { +function fetchOrSubscribe( + operation: RequestParameters, + variables: Variables, +): Observable { return Observable.create((sink) => { if (!operation.text) { return sink.error(new Error('Operation text cannot be empty'));