Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 18e28f3

Browse files
.empty() method works better than .size() == 0. Thanks to m.korotkov@postgrespro.ru for hint
1 parent 5eee873 commit 18e28f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

blobstamper/stamp_json.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ PoolPickerStamp::ExtractStr(std::shared_ptr<Blob> blob)
7474
}
7575
}
7676
}
77-
if (unbounded_pool.size()>0)
77+
if (! unbounded_pool.empty())
7878
target_pool = unbounded_pool;
7979

80-
if (target_pool.size() == 0)
80+
if (target_pool.empty())
8181
{
8282
/* Most probably we are in out of data situation. Check it
8383
* and throw an exception. Or abort if something goes wrong
@@ -187,4 +187,3 @@ StampJSON::StampJSON()
187187
add_weak(stamp_a);
188188
add_weak(stamp_h);
189189
}
190-

0 commit comments

Comments
 (0)