Skip to content

Commit ff8363e

Browse files
author
Omri Peleg
committed
Remove null chain
1 parent c6703ce commit ff8363e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/targets/rapidql/rapidql.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ module.exports = function (source, options) {
2828
}
2929

3030

31-
if (source?.postData?.jsonObj) {
31+
if (source.postData.jsonObj) {
3232
code.push(` json: true,`)
33-
code.push(` body: ${source?.postData?.text}`)
34-
} else if(source?.postData?.params) {
33+
code.push(` body: ${source.postData.text}`)
34+
} else if(source.postData.params) {
3535
code.push(` form : {\n${Object.entries(source.postData.params).map(([key, val]) => `"${key}":"${val}"`).join(",\n")}\n }`);
3636
} else {
37-
code.push(` body : ${source?.postData?.text}`);
37+
code.push(` body : ${source.postData.text}`);
3838
}
3939

4040
code.push(" ) {");

0 commit comments

Comments
 (0)