Commit 4ce25a5
committed
Coding Standards: Remove extra check in
`json_last_error()` can only return an integer, and the `JSON_ERROR_NONE` constant has the value of `0`, so the `empty()` check is redundant here.
Follow-up to [34928], [46206].
Props dilipbheda, audrasjb, SergeyBiryukov.
See #63249.
git-svn-id: https://develop.svn.wordpress.org/trunk@60151 602fd350-edb4-49c9-b593-d223f7449a82WP_REST_Server::get_json_last_error().1 parent a04a13a commit 4ce25a5
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
| 1342 | + | |
1345 | 1343 | | |
1346 | 1344 | | |
1347 | 1345 | | |
| |||
0 commit comments