mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Small cleanups in SQL/JSON code
These are to keep Coverity happy. In one case remove a redundant NULL check, and in another explicitly ignore a function result that is already known.
This commit is contained in:
@@ -2264,7 +2264,7 @@ JsonbUnquote(Jsonb *jb)
|
||||
{
|
||||
JsonbValue v;
|
||||
|
||||
JsonbExtractScalar(&jb->root, &v);
|
||||
(void) JsonbExtractScalar(&jb->root, &v);
|
||||
|
||||
if (v.type == jbvString)
|
||||
return pnstrdup(v.val.string.val, v.val.string.len);
|
||||
|
||||
Reference in New Issue
Block a user