Skip to content

Commit c34abb3

Browse files
committed
Fix if
1 parent 9d19d1b commit c34abb3

File tree

1 file changed

+1
-4
lines changed
  • exercises/static/exercises/obstacle_avoidance/react-components

1 file changed

+1
-4
lines changed

exercises/static/exercises/obstacle_avoidance/react-components/WebGUI.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ function WebGUI() {
5454
}
5555

5656
const getAng = (x,y) => {
57-
var ang = Math.PI / 2;
58-
if(x != 0){
59-
ang = Math.atan2(y, x);
60-
}
57+
var ang = Math.atan2(y, x);
6158
return ang;
6259
}
6360

0 commit comments

Comments
 (0)