Skip to content

Commit

Permalink
fix CodeQL v3
Browse files Browse the repository at this point in the history
  • Loading branch information
z7658329 committed Nov 18, 2022
1 parent 0b829ac commit 22d43cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public static String writeToFile(String dir, String graphName,
String tmpGraphName = graphName + CONF_SUFFIX;
String fileName = Paths.get(dir, tmpGraphName).toString();
try {
config.save(new File(fileName));
File newFile = new File(fileName);
config.save(newFile);
LOG.info("Write HugeConfig to file: '{}'", fileName);
} catch (ConfigurationException e) {
throw new HugeException("Failed to write HugeConfig to file '%s'",
Expand Down

0 comments on commit 22d43cb

Please sign in to comment.