diff --git a/implementations/historical-data-api/ib-historical-data-api-impl/src/main/java/com/sumzerotrading/ib/historical/HistoricalDataUtils.java b/implementations/historical-data-api/ib-historical-data-api-impl/src/main/java/com/sumzerotrading/ib/historical/HistoricalDataUtils.java index f4a20c2..5aa35c6 100644 --- a/implementations/historical-data-api/ib-historical-data-api-impl/src/main/java/com/sumzerotrading/ib/historical/HistoricalDataUtils.java +++ b/implementations/historical-data-api/ib-historical-data-api-impl/src/main/java/com/sumzerotrading/ib/historical/HistoricalDataUtils.java @@ -61,11 +61,7 @@ public static String buildBarDataSizeString( int size, BarData.LengthUnit sizeUn if( size != 1 && size != 5 && size != 15 && size != 30 ) { throw new InvalidBarSizeException( "Valid values for seconds are 1, 5, 15 or 30" ); } else { - if( size == 1 ) { - return "1 sec"; - } else { - return size + " secs"; - } + return size + " secs"; } } else if( sizeUnit == BarData.LengthUnit.MINUTE ) { if( size != 1 && size != 2 && size != 5 && size != 15 && size != 30 ) {