aboutsummaryrefslogtreecommitdiffstats
path: root/vm/adb
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-11 17:09:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-12 08:22:44 +0200
commitc1147c8df73eb61bc9d66e6628e0369e21f28670 (patch)
tree1f5f75bf13a32941025c134fdd236fb137cf3181 /vm/adb
parent0faffd0438df859fb66236085ac3992735900d26 (diff)
all: fix comments format
Fix capitalization, dots at the end and two spaces after a period. Update #1876
Diffstat (limited to 'vm/adb')
-rw-r--r--vm/adb/adb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index 3996ab012..75e4a1f7c 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -322,10 +322,10 @@ func (inst *instance) checkBatteryLevel() error {
func (inst *instance) getBatteryLevel(numRetry int) (int, error) {
out, err := inst.adb("shell", "dumpsys battery | grep level:")
- // allow for retrying for devices that does not boot up so fast
+ // Allow for retrying for devices that does not boot up so fast.
for ; numRetry >= 0 && err != nil; numRetry-- {
if numRetry > 0 {
- // sleep for 5 seconds before retrying
+ // Sleep for 5 seconds before retrying.
time.Sleep(5 * time.Second)
out, err = inst.adb("shell", "dumpsys battery | grep level:")
}