Skip to content

Commit f50487f

Browse files
fix build
1 parent 7dc687c commit f50487f

File tree

1 file changed

+6
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+6
-2
lines changed

src/main/java/com/fishercoder/solutions/_149.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public class _149 {
4040
public static class Solution1 {
4141
/** credit: https://leetcode.com/problems/max-points-on-a-line/discuss/47113/A-java-solution-with-notes */
4242
public int maxPoints(Point[] points) {
43-
if (points == null) return 0;
44-
if (points.length <= 2) return points.length;
43+
if (points == null) {
44+
return 0;
45+
}
46+
if (points.length <= 2) {
47+
return points.length;
48+
}
4549

4650
Map<Integer, Map<Integer, Integer>> map = new HashMap<>();
4751
int result = 0;

0 commit comments

Comments
 (0)