You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Typo
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
const q = require('q');
|
const q = require('q');
|
||||||
const request = (opts) => {
|
const request = (opts) => {
|
||||||
const expectingJSONOnSucess = opts.json;
|
const expectingJSONOnSuccess = opts.json;
|
||||||
if (opts.json) {
|
if (opts.json) {
|
||||||
opts.json = false;
|
opts.json = false;
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@ const request = (opts) => {
|
|||||||
throw new Error(body);
|
throw new Error(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (expectingJSONOnSucess) {
|
if (expectingJSONOnSuccess) {
|
||||||
body = JSON.parse(body);
|
body = JSON.parse(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user