You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/06 15:01:19 UTC
[commons-io] branch master updated: In-line local var.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new a75b412 In-line local var.
a75b412 is described below
commit a75b41256e0ae65c3043ad6133f2bfa8f9a24b8f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Dec 6 10:01:15 2020 -0500
In-line local var.
---
src/main/java/org/apache/commons/io/FileUtils.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java
index 0fed985..153666d 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -1216,9 +1216,7 @@ public class FileUtils {
}
if (!directory.delete()) {
- final String message =
- "Unable to delete directory " + directory + ".";
- throw new IOException(message);
+ throw new IOException("Unable to delete directory " + directory + ".");
}
}