Permalink
Browse files

Cleanup: removed unused method parameter

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
  • Loading branch information...
1 parent edeaa1f commit 85afc33993cd65ec0ff9992963af678933bbb4de @ifedorenko ifedorenko committed Apr 1, 2013
@@ -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 );
}
}
@@ -67,7 +67,7 @@ protected void doRun()
}
try
{
- manager.updateAndPublishPrefixFile( mavenRepository, true );
+ manager.updateAndPublishPrefixFile( mavenRepository );
}
catch ( Exception e )
{

0 comments on commit 85afc33

Please sign in to comment.