non necessary local variable

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-31 14:13:56 +00:00
parent 0daef64c18
commit 7afb00d1c8
3 changed files with 3 additions and 6 deletions

View File

@ -158,8 +158,7 @@ public class XMLReader
if ( evaluated instanceof Element ) if ( evaluated instanceof Element )
{ {
Element evalElem = (Element) evaluated; return (Element) evaluated;
return evalElem;
} }
else else
{ {

View File

@ -1063,8 +1063,7 @@ public class DefaultRepositoriesService
try try
{ {
boolean res = userRepositories.isAuthorizedToDeleteArtifacts( userName, repoId ); return userRepositories.isAuthorizedToDeleteArtifacts( userName, repoId );
return res;
} }
catch ( ArchivaSecurityException e ) catch ( ArchivaSecurityException e )
{ {

View File

@ -89,8 +89,7 @@ public class FileMetadataRepository
{ {
// TODO: should be configurable, like the index // TODO: should be configurable, like the index
String basedir = configuration.getConfiguration().getManagedRepositoriesAsMap().get( repoId ).getLocation(); String basedir = configuration.getConfiguration().getManagedRepositoriesAsMap().get( repoId ).getLocation();
File dir = new File( basedir, ".archiva" ); return new File( basedir, ".archiva" );
return dir;
} }
private File getDirectory( String repoId ) private File getDirectory( String repoId )