Skip to content

Commit 3d0d15b

Browse files
678098willhoy
andauthored
Fix[rmqamqpt_basicproperties.cpp]: invert condition for userId check (#75)
Signed-off-by: Evgenii Malygin <emalygin@bloomberg.net> Co-authored-by: Will <2185386+willhoy@users.noreply.github.com>
1 parent 28e794f commit 3d0d15b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rmq/rmqamqpt/rmqamqpt_basicproperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ bool BasicProperties::decode(BasicProperties* props,
343343
}
344344
if (flags & maskForProperty(USER_ID)) {
345345
properties.userId = "";
346-
if (rmqamqpt::Types::decodeShortString(&*properties.userId, &buffer)) {
346+
if (!rmqamqpt::Types::decodeShortString(&*properties.userId, &buffer)) {
347347
BALL_LOG_ERROR << "Decoding fail for basic property: "
348348
<< PROPERTY_NAMES[USER_ID];
349349
success = false;

0 commit comments

Comments
 (0)