hansva commented on a change in pull request #1255:
URL: https://github.com/apache/hop/pull/1255#discussion_r780205491
##########
File path:
plugins/transforms/getfilenames/src/main/java/org/apache/hop/pipeline/transforms/getfilenames/GetFileNames.java
##########
@@ -279,7 +279,7 @@ public boolean processRow() throws HopException {
putRow(data.outputRowMeta, outputRow);
if (meta.getRowLimit() > 0
- && data.rownr >= meta.getRowLimit()) { // limit has been reached:
stop now.
Review comment:
I would have kept it like this, it's defensive programming. What if in
some really odd case it does get above the limit? then it will stop with
limit+1, now it will continue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]