Skip to content

Commit 9d0408b

Browse files
authored
Update 2125-number-of-laser-beams-in-a-bank.js
Add spaces after control flow statements.
1 parent ff226cb commit 9d0408b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: javascript/2125-number-of-laser-beams-in-a-bank.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ var numberOfBeams = function(bank) {
1616
return beam.split("").filter((b) => b === "1").length;
1717
}
1818

19-
while(right < bank.length) {
20-
while(right < bank.length && !countBeam(bank[right])) {
19+
while (right < bank.length) {
20+
while (right < bank.length && !countBeam(bank[right])) {
2121
right++;
2222
}
2323

24-
if(right < bank.length) {
24+
if (right < bank.length) {
2525
totalBeams += countBeam(bank[left]) * countBeam(bank[right]);
2626
}
2727
left = right;

0 commit comments

Comments
 (0)