Skip to content

Commit 5eb0456

Browse files
committed
update
1 parent 7f80abd commit 5eb0456

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

R/utilities-resolution.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ resolution <- function(x, zero = TRUE, discrete = FALSE) {
3535
d <- diff(sort(x))
3636
tolerance <- sqrt(.Machine$double.eps)
3737

38-
if(all(d < tolerance)){
39-
return(1)
40-
}
41-
42-
min(d[d > tolerance])
38+
min(d[d > tolerance], 1)
4339

4440
}

0 commit comments

Comments
 (0)