Fix linter issues on HardwareInterface.
BUG=None
TEST=Passed cpplinter and unit tests.
Change-Id: I0eafef46a1cde54c62f4fa4ffbe13df5cf73e795
Reviewed-on: https://chromium-review.googlesource.com/197586
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/hardware.cc b/hardware.cc
index 441e066..3a11129 100644
--- a/hardware.cc
+++ b/hardware.cc
@@ -90,15 +90,15 @@
LOG(INFO) << "GetAllKernelDevices";
std::string disk_name = utils::GetDiskName(Hardware::BootKernelDevice());
- if(disk_name.empty()) {
+ if (disk_name.empty()) {
LOG(ERROR) << "Failed to get the cuurent kernel boot disk name";
return std::vector<std::string>();
}
std::vector<std::string> devices;
- for (int partition_num : {2, 4}) { // for now, only #2, #4 for slot A & B
+ for (int partition_num : {2, 4}) { // for now, only #2, #4 for slot A & B
std::string device = utils::MakePartitionName(disk_name, partition_num);
- if(!device.empty()) {
+ if (!device.empty()) {
devices.push_back(std::move(device));
} else {
LOG(ERROR) << "Cannot make a partition name for disk: "