summaryrefslogtreecommitdiff
path: root/dexopt_chroot_setup
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2024-05-08 15:28:37 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2024-05-15 10:18:49 +0000
commit080f7b456e6bb62fbe2db6a4d871a31144f488f5 (patch)
tree53c3d0e620514728c14d8bfc4e868766ddda3cf6 /dexopt_chroot_setup
parentcd39615402f99f5c7f6e5c3f436bc2e73bb14ccc (diff)
Fix performance-unnecessary-value-param clang-tidy issues
Bug: 264654008 Test: m tidy-art Change-Id: Ie4b543acd5cb636db30e18e501deb046ed194e1a
Diffstat (limited to 'dexopt_chroot_setup')
-rw-r--r--dexopt_chroot_setup/dexopt_chroot_setup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dexopt_chroot_setup/dexopt_chroot_setup.cc b/dexopt_chroot_setup/dexopt_chroot_setup.cc
index b83088ea76..35343c5b3c 100644
--- a/dexopt_chroot_setup/dexopt_chroot_setup.cc
+++ b/dexopt_chroot_setup/dexopt_chroot_setup.cc
@@ -82,7 +82,7 @@ const NoDestructor<std::string> kBindMountTmpDir(
constexpr mode_t kChrootDefaultMode = 0755;
constexpr std::chrono::milliseconds kSnapshotCtlTimeout = std::chrono::seconds(60);
-bool IsOtaUpdate(const std::optional<std::string> ota_slot) { return ota_slot.has_value(); }
+bool IsOtaUpdate(const std::optional<std::string>& ota_slot) { return ota_slot.has_value(); }
Result<void> Run(std::string_view log_name, const std::vector<std::string>& args) {
LOG(INFO) << "Running " << log_name << ": " << Join(args, /*separator=*/" ");