You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/04/15 11:14:11 UTC
[maven-checkstyle-plugin] branch master updated: (doc) Remove
expression that always evaluates to true
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new d16d027 (doc) Remove expression that always evaluates to true
d16d027 is described below
commit d16d027cb732f8b37e575e3540afb8e08cd3ac06
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Sun Apr 5 19:57:47 2020 +0200
(doc) Remove expression that always evaluates to true
---
src/main/java/org/apache/maven/plugins/checkstyle/ReportResource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/ReportResource.java b/src/main/java/org/apache/maven/plugins/checkstyle/ReportResource.java
index 4cb930c..0188c80 100644
--- a/src/main/java/org/apache/maven/plugins/checkstyle/ReportResource.java
+++ b/src/main/java/org/apache/maven/plugins/checkstyle/ReportResource.java
@@ -46,7 +46,7 @@ public class ReportResource
public void copy( String resourceName ) throws IOException
{
File resource = new File( outputDirectory, resourceName );
- if ( ( resource != null ) && ( !resource.exists() ) )
+ if ( !resource.exists() )
{
URL url =
Thread.currentThread().getContextClassLoader().getResource( resourcePathBase + "/" + resourceName );