Skip to content

Commit

Permalink
remove useless if
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Aug 31, 2016
1 parent 41200a0 commit f3fb181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/include/dplyr/Result/max.h
Expand Up @@ -28,7 +28,7 @@ namespace dplyr {
}

// we enter this loop if we did not scan the full vector
if( i < n ) for( ; i<n; i++) {
for( ; i < n; i++) {
STORAGE current = data_ptr[indices[i]] ;
if( !Rcpp::Vector<RTYPE>::is_na(current) && internal::is_smaller<RTYPE>( res, current ) ) res = current ;
}
Expand Down
2 changes: 1 addition & 1 deletion inst/include/dplyr/Result/min.h
Expand Up @@ -29,7 +29,7 @@ namespace dplyr {
}

// we enter this loop if we did not scan the full vector
if( i < n ) for( ; i<n; i++) {
for( ; i < n; i++) {
STORAGE current = data_ptr[indices[i]] ;
if( !Rcpp::Vector<RTYPE>::is_na(current) && internal::is_smaller<RTYPE>( current, res ) ) res = current ;
}
Expand Down

0 comments on commit f3fb181

Please sign in to comment.