Skip to content

Commit 1186380

Browse files
mydeaAbhiPrasad
andauthored
Apply suggestions from code review
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
1 parent e20f9ec commit 1186380

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/replay/src/coreHandlers/util/networkUtils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,5 @@ function _strIsProbablyJson(str: string): boolean {
218218
const last = str[str.length - 1];
219219

220220
// 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;
221+
return ((first === '[' && last === ']') || (first === '{' && last === '}'));
226222
}

0 commit comments

Comments
 (0)