slawekjaranowski commented on code in PR #414:
URL: 
https://github.com/apache/maven-dependency-plugin/pull/414#discussion_r1640988500


##########
src/main/java/org/apache/maven/plugins/dependency/utils/DependencyUtil.java:
##########
@@ -226,7 +229,19 @@ public static synchronized void write(String string, File 
file, boolean append,
             throws IOException {
         Files.createDirectories(file.getParentFile().toPath());
 
-        try (Writer writer = Files.newBufferedWriter(file.toPath(), 
Charset.forName(encoding))) {
+        OpenOption appendOption;

Review Comment:
   can be a ternary operator 😄 



-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to