From 0b028aa32a71ee478664ad70db7ab154e19435e6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 15 Jun 2020 15:47:02 +0200 Subject: [PATCH] Fix line break after binary operator (#2119) * Fix line break after binary operator * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> --- backtracking/rat_in_maze.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backtracking/rat_in_maze.py b/backtracking/rat_in_maze.py index c533713a8..ba96d6a52 100644 --- a/backtracking/rat_in_maze.py +++ b/backtracking/rat_in_maze.py @@ -97,10 +97,12 @@ def run_maze(maze, i, j, solutions): solutions[i][j] = 1 # check for directions - if (run_maze(maze, i + 1, j, solutions) or - run_maze(maze, i, j + 1, solutions) or - run_maze(maze, i - 1, j, solutions) or - run_maze(maze, i, j - 1, solutions)): + if ( + run_maze(maze, i + 1, j, solutions) + or run_maze(maze, i, j + 1, solutions) + or run_maze(maze, i - 1, j, solutions) + or run_maze(maze, i, j - 1, solutions) + ): return True solutions[i][j] = 0