We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3ffc5a + ab78d4a commit e8db92eCopy full SHA for e8db92e
1 file changed
src/variables/remote_user.cc
@@ -56,8 +56,7 @@ void RemoteUser::evaluate(Transaction *transaction,
56
57
base64 = Utils::Base64::decode(base64);
58
59
- const auto pos = base64.find(":");
60
- if (pos != std::string::npos) {
+ if (const auto pos{base64.find(":")}; pos != std::string::npos) {
61
transaction->m_variableRemoteUser.assign(std::string(base64, 0, pos));
62
63
auto var = std::make_unique<VariableValue>(&v->getKeyWithCollection(),
0 commit comments