Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 29647db

Browse files
author
Alan Shaw
committed
chore: appease linter
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent e600d98 commit 29647db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pubsub/publish.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ module.exports = configure(({ ky }) => {
1414
const searchParams = new URLSearchParams(options.searchParams)
1515
searchParams.set('arg', topic)
1616

17-
return ky.post(`pubsub/pub?${searchParams}&arg=${encodeBuffer(data)}`, {
17+
const res = await ky.post(`pubsub/pub?${searchParams}&arg=${encodeBuffer(data)}`, {
1818
timeout: options.timeout,
1919
signal: options.signal,
2020
headers: options.headers
2121
}).text()
22+
23+
return res
2224
}
2325
})
2426

0 commit comments

Comments
 (0)