Skip to content

Commit

Permalink
docs(readme): format [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Feb 25, 2022
1 parent 3124754 commit cb47a9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ const subscriptionsClient = createClient({

// both fetch and subscribe can be handled through one implementation
// to understand why we return Observable<any>, please see: https://github.com/enisdenjo/graphql-ws/issues/316#issuecomment-1047605774
function fetchOrSubscribe(operation: RequestParameters, variables: Variables): Observable<any> {
function fetchOrSubscribe(
operation: RequestParameters,
variables: Variables,
): Observable<any> {
return Observable.create((sink) => {
if (!operation.text) {
return sink.error(new Error('Operation text cannot be empty'));
Expand Down

0 comments on commit cb47a9d

Please sign in to comment.