Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 49d083b

Browse files
fix lint errors
1 parent f625d93 commit 49d083b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎src/algorithms/get-min.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
function getMin(n = []) {
66
let min = n[0];
77

8-
n.forEach(element => {
9-
if(element < min) {
8+
n.forEach((element) => {
9+
if(element < min) {
1010
min = element;
1111
}
1212
});
1313
return min;
1414
}
1515

16-
module.exports = getMin;
16+
module.exports = getMin;

‎src/algorithms/get-min.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ describe('find smallest number', () => {
1616
it('should work with empty', () => {
1717
expect(getMin([])).toEqual(undefined);
1818
});
19-
});
19+
});

‎src/runtimes/02-binary-search.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ describe('Binary Search', () => {
2626
it('should find a smaller element', () => {
2727
expect(binarySearch(array, -9)).toEqual(-1);
2828
});
29-
});
29+
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /