okumin commented on code in PR #5090:
URL: https://github.com/apache/hive/pull/5090#discussion_r1494836026
##########
ql/src/java/org/apache/hadoop/hive/ql/session/ClearDanglingScratchDir.java:
##########
@@ -252,17 +252,12 @@ static Options createOptions() {
*/
private void removeLocalTmpFiles(String sessionName, String localTmpdir) {
File[] files = new File(localTmpdir).listFiles(fn ->
fn.getName().startsWith(sessionName));
- boolean success;
if (files != null) {
Review Comment:
We may early-return in this case. It could be just my preference and you may
ignore it.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]