From: Radoslaw Zarzynski Date: Fri, 15 Nov 2019 23:02:30 +0000 (+0100) Subject: rgw: fix indentation in parse_rgw_ldap_bindpw(). X-Git-Tag: v14.2.8~20^2~56^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a81fbe895478967d76333ad4446be081e96d1b02;p=ceph.git rgw: fix indentation in parse_rgw_ldap_bindpw(). Signed-off-by: Radoslaw Zarzynski (cherry picked from commit 956f57c711c73c0fe34736b87a1ff341a92fea63) --- diff --git a/src/rgw/rgw_ldap.cc b/src/rgw/rgw_ldap.cc index ffb82b9e2e6..91106a1156e 100644 --- a/src/rgw/rgw_ldap.cc +++ b/src/rgw/rgw_ldap.cc @@ -27,12 +27,12 @@ std::string parse_rgw_ldap_bindpw(CephContext* ctx) memset(bindpw, 0, 1024); int pwlen = safe_read_file("" /* base */, ldap_secret.c_str(), bindpw, 1023); - if (pwlen > 0) { - ldap_bindpw = bindpw; - boost::algorithm::trim(ldap_bindpw); - if (ldap_bindpw.back() == '\n') - ldap_bindpw.pop_back(); - } + if (pwlen > 0) { + ldap_bindpw = bindpw; + boost::algorithm::trim(ldap_bindpw); + if (ldap_bindpw.back() == '\n') + ldap_bindpw.pop_back(); + } } return ldap_bindpw;