From: Radoslaw Zarzynski Date: Thu, 7 Jul 2016 17:39:41 +0000 (+0200) Subject: rgw: ONLY improve formatting in RGWHandler_REST_SWIFT::authorize(). X-Git-Tag: ses5-milestone5~182^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da1b70e61e86073b19e70fcefefdf550a3f075fe;p=ceph.git rgw: ONLY improve formatting in RGWHandler_REST_SWIFT::authorize(). Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 3a3537ba8027..66dd2e0af0d2 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -1486,10 +1486,9 @@ RGWOp *RGWHandler_REST_Obj_SWIFT::op_options() int RGWHandler_REST_SWIFT::authorize() { /* Factories. */ - class SwiftAuthFactory - : public RGWTempURLAuthApplier::Factory, - public RGWLocalAuthApplier::Factory, - public RGWRemoteAuthApplier::Factory { + class SwiftAuthFactory : public RGWTempURLAuthApplier::Factory, + public RGWLocalAuthApplier::Factory, + public RGWRemoteAuthApplier::Factory { typedef RGWAuthApplier::aplptr_t aplptr_t; RGWRados * const store; @@ -1511,8 +1510,8 @@ int RGWHandler_REST_SWIFT::authorize() } aplptr_t create_apl_local(CephContext * const cct, - const RGWUserInfo& user_info, - const std::string& subuser) const override { + const RGWUserInfo& user_info, + const std::string& subuser) const override { return aplptr_t( new RGWThirdPartyAccountAuthApplier( RGWLocalAuthApplier(cct, user_info, subuser), @@ -1557,7 +1556,7 @@ int RGWHandler_REST_SWIFT::authorize() ldout(s->cct, 5) << "trying auth engine: " << engine->get_name() << dendl; auto applier = engine->authenticate(); - if (!applier) { + if (! applier) { /* Access denied is acknowledged by returning a std::unique_ptr with * nullptr inside. */ ldout(s->cct, 5) << "auth engine refused to authenicate" << dendl;