Skip to content

Commit

Permalink
rgw/swift: remove redundant assignment operation
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
  • Loading branch information
Yan-waller authored and rzarzynski committed Oct 3, 2016
1 parent 00873f2 commit f0ae5fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rgw/rgw_swift_auth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,7 @@ static int encode_token(CephContext *cct, string& swift_user, string& key,
utime_t expiration = ceph_clock_now(cct);
expiration += cct->_conf->rgw_swift_token_expiration;

ret = build_token(swift_user, key, nonce, expiration, bl);

return ret;
return build_token(swift_user, key, nonce, expiration, bl);
}


Expand Down

0 comments on commit f0ae5fe

Please sign in to comment.