Skip to content

Commit 7d74d42

Browse files
committed
Formatting changes
1 parent e8d3beb commit 7d74d42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/thealgorithms/geometry/BresenhamLineStrategy.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ public List<Point> findLine(int x0, int y0, int x1, int y1) {
1818

1919
while (true) {
2020
line.add(new Point(x0, y0));
21-
if (x0 == x1 && y0 == y1) break;
22-
21+
if (x0 == x1 && y0 == y1) {
22+
break;
23+
}
2324
int e2 = err * 2;
2425

2526
if (e2 > -dy) {

0 commit comments

Comments
 (0)