From f3fb181d6999882b7587e6fa7418ba78d6d29ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 31 Aug 2016 16:48:42 +0200 Subject: [PATCH] remove useless if --- inst/include/dplyr/Result/max.h | 2 +- inst/include/dplyr/Result/min.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/include/dplyr/Result/max.h b/inst/include/dplyr/Result/max.h index 8931f570d9..cf8cbb44a4 100644 --- a/inst/include/dplyr/Result/max.h +++ b/inst/include/dplyr/Result/max.h @@ -28,7 +28,7 @@ namespace dplyr { } // we enter this loop if we did not scan the full vector - if( i < n ) for( ; i::is_na(current) && internal::is_smaller( res, current ) ) res = current ; } diff --git a/inst/include/dplyr/Result/min.h b/inst/include/dplyr/Result/min.h index 047ae2eb99..4f8a750103 100644 --- a/inst/include/dplyr/Result/min.h +++ b/inst/include/dplyr/Result/min.h @@ -29,7 +29,7 @@ namespace dplyr { } // we enter this loop if we did not scan the full vector - if( i < n ) for( ; i::is_na(current) && internal::is_smaller( current, res ) ) res = current ; }