slawekjaranowski commented on code in PR #89:
URL: https://github.com/apache/maven-help-plugin/pull/89#discussion_r1132628389


##########
src/main/java/org/apache/maven/plugins/help/SystemMojo.java:
##########
@@ -67,14 +67,10 @@ public void execute() throws MojoExecutionException {
         message.append(StringUtils.repeat("=", LINE_LENGTH)).append(LS);
         message.append("Environment Variables").append(LS);
         message.append(StringUtils.repeat("=", LINE_LENGTH)).append(LS);
-        try {
-            Properties envVars = CommandLineUtils.getSystemEnvVars();
-            for (String key : envVars.stringPropertyNames()) {
-                message.append(LS);
-                
message.append(key).append("=").append(envVars.getProperty(key));
-            }
-        } catch (IOException e) {
-            getLog().warn("Unable to get the environment variables: " + 
e.getMessage());
+        Properties envVars = CommandLineUtils.getSystemEnvVars();

Review Comment:
   It is only used for display - so maybe more complicated logic is not needed



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to