*: Run black
Change-Id: I6d54b5e77d341ba13721c9483b84f9743eaa92d3
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/26380
Commit-Queue: Rob Mohr <mohrr@google.com>
Commit-Queue: Oliver Newman <olivernewman@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
diff --git a/recipe_modules/roll_util/api.py b/recipe_modules/roll_util/api.py
index 1095a4c..f75ec4d 100644
--- a/recipe_modules/roll_util/api.py
+++ b/recipe_modules/roll_util/api.py
@@ -109,8 +109,8 @@
with self._api.step.nest(self.project_name):
commits = []
if (
- _is_hash(self.old_revision) and
- self.direction == _Direction.FORWARD
+ _is_hash(self.old_revision)
+ and self.direction == _Direction.FORWARD
):
base = self.old_revision
else:
@@ -310,9 +310,7 @@
Direction = _Direction
- def get_roll_direction(
- self, git_dir, old, new, name='get roll direction'
- ):
+ def get_roll_direction(self, git_dir, old, new, name='get roll direction'):
"""Return Direction of roll."""
if old == new:
with self.m.step.nest(name) as pres: