Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup: removed unused method parameter

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
  • Loading branch information...
commit 85afc33993cd65ec0ff9992963af678933bbb4de 1 parent edeaa1f
@ifedorenko ifedorenko authored
View
16 nexus-core/src/main/java/org/sonatype/nexus/proxy/maven/routing/internal/ManagerImpl.java
@@ -508,7 +508,7 @@ public boolean isUpdatePrefixFileJobRunning()
return !statistics.getCurrentlyRunningJobKeys().isEmpty();
}
- protected void updateAndPublishPrefixFile( final MavenRepository mavenRepository, final boolean notify )
+ protected void updateAndPublishPrefixFile( final MavenRepository mavenRepository )
throws IOException
{
getLogger().debug( "Updating prefix file of {}", mavenRepository );
@@ -535,20 +535,14 @@ else if ( mavenRepository.getRepositoryKind().isFacetAvailable( MavenHostedRepos
}
if ( prefixSource != null && prefixSource.supported() )
{
- if ( notify )
- {
- getLogger().info( "Updated and published prefix file of {}",
- RepositoryStringUtils.getHumanizedNameString( mavenRepository ) );
- }
+ getLogger().info( "Updated and published prefix file of {}",
+ RepositoryStringUtils.getHumanizedNameString( mavenRepository ) );
publish( mavenRepository, prefixSource );
}
else
{
- if ( notify )
- {
- getLogger().info( "Unpublished prefix file of {} (and is marked for noscrape)",
- RepositoryStringUtils.getHumanizedNameString( mavenRepository ) );
- }
+ getLogger().info( "Unpublished prefix file of {} (and is marked for noscrape)",
+ RepositoryStringUtils.getHumanizedNameString( mavenRepository ) );
unpublish( mavenRepository );
}
}
View
2  ...c/main/java/org/sonatype/nexus/proxy/maven/routing/internal/UpdateRepositoryRunnable.java
@@ -67,7 +67,7 @@ protected void doRun()
}
try
{
- manager.updateAndPublishPrefixFile( mavenRepository, true );
+ manager.updateAndPublishPrefixFile( mavenRepository );
}
catch ( Exception e )
{
Please sign in to comment.
Something went wrong with that request. Please try again.