We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20f9ec commit 1186380Copy full SHA for 1186380
packages/replay/src/coreHandlers/util/networkUtils.ts
@@ -218,9 +218,5 @@ function _strIsProbablyJson(str: string): boolean {
218
const last = str[str.length - 1];
219
220
// Simple check: If this does not start & end with {} or [], it's not JSON
221
- if ((first === '[' && last === ']') || (first === '{' && last === '}')) {
222
- return true;
223
- }
224
-
225
- return false;
+ return ((first === '[' && last === ']') || (first === '{' && last === '}'));
226
}
0 commit comments