From 7e0d039096258bd4690dd99c67215b49a438e7d8 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Wed, 24 Aug 2011 13:30:06 +0000 Subject: [PATCH] remove redundant if statement git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1161094 13f79535-47bb-0310-9956-ffa450edef68 --- .../EditManagedRepositoryAction.java | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java index 4e731f1d8..59200542a 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/EditManagedRepositoryAction.java @@ -168,26 +168,23 @@ public class EditManagedRepositoryAction repositoryStatisticsManager.deleteStatistics( repositorySession.getRepository(), repository.getId() ); repositorySession.save(); } + //MRM-1342 Repository statistics report doesn't appear to be working correctly + //scan repository when modification of repository is successful if ( result.equals( SUCCESS ) ) { - //MRM-1342 Repository statistics report doesn't appear to be working correctly - //scan repository when modification of repository is successful - if ( result.equals( SUCCESS ) ) + try { - try + executeRepositoryScanner( repository.getId() ); + if ( stageNeeded ) { - executeRepositoryScanner( repository.getId() ); - if ( stageNeeded ) - { - executeRepositoryScanner( stagingRepository.getId() ); - } - } - catch ( TaskQueueException e ) - { - log.warn( new StringBuilder( "Unable to scan repository [" ).append( repository.getId() ).append( "]: " ).append( - e.getMessage() ).toString(), e ); + executeRepositoryScanner( stagingRepository.getId() ); } } + catch ( TaskQueueException e ) + { + log.warn( new StringBuilder( "Unable to scan repository [" ).append( repository.getId() ).append( "]: " ).append( + e.getMessage() ).toString(), e ); + } } } catch ( IOException e ) -- 2.39.5