jt2594838 commented on a change in pull request #4079:
URL: https://github.com/apache/iotdb/pull/4079#discussion_r738887159
##########
File path:
cluster/src/main/java/org/apache/iotdb/cluster/log/snapshot/FileSnapshot.java
##########
@@ -350,7 +350,7 @@ private void removeRemoteHardLink(RemoteTsFileResource
resource) {
try {
client.removeHardLink(resource.getTsFile().getAbsolutePath());
} catch (TException te) {
- client.close();
+ if (client != null) client.close();
Review comment:
As google style suggests, we should use `{}` even for single-line code
blocks.
--
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]