Skip to content

Commit ac8af6f

Browse files
committed
Remove catch.
1 parent f6afc4e commit ac8af6f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/file/SystemPropertiesHandler.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,8 @@ private void replaceFormalFile() throws IOException {
184184
"Delete formal system properties file fail: %s", formalFile.getAbsoluteFile());
185185
throw new IOException(msg);
186186
}
187-
try {
188-
FileUtils.moveFileSafe(tmpFile, formalFile);
189-
} catch (Exception e) {
190-
String msg =
191-
String.format(
192-
"Failed to replace formal system properties file, you may manually rename it: %s -> %s",
193-
tmpFile.getAbsolutePath(), formalFile.getAbsolutePath());
194-
throw new IOException(msg, e);
195-
}
187+
188+
FileUtils.moveFileSafe(tmpFile, formalFile);
196189
}
197190

198191
public void resetFilePath(String filePath) {

0 commit comments

Comments
 (0)