commit 6aa81e5202c7328b164747f5a581147833205357 Author: iwakeh iwakeh@torproject.org Date: Wed Dec 20 13:06:50 2017 +0000
Remove variable that is only used once. --- src/main/java/org/torproject/metrics/stats/ipv6servers/Writer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/torproject/metrics/stats/ipv6servers/Writer.java b/src/main/java/org/torproject/metrics/stats/ipv6servers/Writer.java index 96f8a8d..13c621f 100644 --- a/src/main/java/org/torproject/metrics/stats/ipv6servers/Writer.java +++ b/src/main/java/org/torproject/metrics/stats/ipv6servers/Writer.java @@ -20,8 +20,7 @@ class Writer { throws IOException { File parentFile = filePath.toFile().getParentFile(); if (null != parentFile && !parentFile.exists()) { - boolean madeDirs = parentFile.mkdirs(); - if (!madeDirs) { + if (!parentFile.mkdirs()) { throw new IOException("Unable to create parent directory of output " + "file. Not writing this file."); }
tor-commits@lists.torproject.org