Skip to content

Commit 2226f35

Browse files
committed
PHP compliance
1 parent f20f13d commit 2226f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/math/hypot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ function hypot(x, y) {
66
// example 2: hypot([], 'a');
77
// returns 2: null
88

9-
return Math.sqrt(x * x + y * y) || 0;
9+
return Math.sqrt(x * x + y * y) || null;
1010
}

0 commit comments

Comments
 (0)