summaryrefslogtreecommitdiffstats
path: root/updater/commands.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2020-07-24 21:49:50 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-24 21:49:50 +0200
commit8885ef0529717451933c9f4a28cb4b8875c913f3 (patch)
tree8a627dfb738987b5c1a3181b96b141e628f172ae /updater/commands.cpp
parent[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fd33b4992d -s ours am: 934505ba52 -s ours (diff)
parentMerge changes I0f3f0333,If447b2cf am: 435a5fc0c2 am: 74538db684 (diff)
downloadandroid_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.tar
android_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.tar.gz
android_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.tar.bz2
android_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.tar.lz
android_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.tar.xz
android_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.tar.zst
android_bootable_recovery-8885ef0529717451933c9f4a28cb4b8875c913f3.zip
Diffstat (limited to 'updater/commands.cpp')
-rw-r--r--updater/commands.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/updater/commands.cpp b/updater/commands.cpp
index aed63369c..1a7c272b5 100644
--- a/updater/commands.cpp
+++ b/updater/commands.cpp
@@ -128,7 +128,6 @@ bool Command::ParseTargetInfoAndSourceInfo(const std::vector<std::string>& token
// No stashes, only source ranges.
SourceInfo result(src_hash, src_ranges, {}, {});
- // Sanity check the block count.
if (result.blocks() != src_blocks) {
*err =
android::base::StringPrintf("mismatching block count: %zu (%s) vs %zu", result.blocks(),
@@ -262,7 +261,7 @@ Command Command::Parse(const std::string& line, size_t index, std::string* err)
return {};
}
} else if (op == Type::ABORT) {
- // No-op, other than sanity checking the input args.
+ // Abort takes no arguments, so there's nothing else to check.
if (pos != tokens.size()) {
*err = android::base::StringPrintf("invalid number of args: %zu (expected 0)",
tokens.size() - pos);