summaryrefslogtreecommitdiffstats
path: root/updater/commands.cpp
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-07-23 02:25:11 +0200
committerTianjie <xunchang@google.com>2020-07-23 22:07:24 +0200
commit1bc976a74ed26a5dcdbf9baef53e280f04eb272f (patch)
treea326338cf4a7522342327493e9c95c9ae9ca89ea /updater/commands.cpp
parentMerge "Add recovery support of dynamic fingerprints" (diff)
downloadandroid_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.tar
android_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.tar.gz
android_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.tar.bz2
android_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.tar.lz
android_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.tar.xz
android_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.tar.zst
android_bootable_recovery-1bc976a74ed26a5dcdbf9baef53e280f04eb272f.zip
Diffstat (limited to '')
-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);