Skip to content

Commit 12cc309

Browse files
committed
unnecessary return
1 parent 0bfa0bf commit 12cc309

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

man/fcase.Rd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ fcase(
6363
# fcase can be used for recursion, unlike fifelse
6464
gcd_dt = function(x,y) {
6565
r = x\%\%y
66-
# Recursive call must be in the last when-value pair
67-
return(fcase(!r, y, r, gcd_dt(x, y)))
66+
fcase(!r, y, r, gcd_dt(x, y)) # Recursive call must be in the last when-value pair
6867
}
6968
gcd_dt(10L, 1L)
7069
}

0 commit comments

Comments
 (0)