Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1388c333 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix idmap2 policy concatenation"

parents 59934bee ac791e65
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -269,12 +269,10 @@ Result<std::unique_ptr<const Idmap>> Idmap::FromBinaryStream(std::istream& strea
std::string ConcatPolicies(const std::vector<std::string>& policies) {
  std::string message;
  for (const std::string& policy : policies) {
    if (message.empty()) {
      message.append(policy);
    } else {
      message.append(policy);
    if (!message.empty()) {
      message.append("|");
    }
    message.append(policy);
  }

  return message;