Skip to content

Commit

Permalink
Merge pull request #11292 from rzarzynski/yj-wip-swift-build_token-cl…
Browse files Browse the repository at this point in the history
…eanup

rgw/swift: remove redundant assignment operation

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
  • Loading branch information
rzarzynski committed Oct 3, 2016
2 parents eb62120 + f0ae5fe commit cfc0a16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rgw/rgw_swift_auth.cc
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 cfc0a16

Please sign in to comment.