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 )
{
Element evalElem = (Element) evaluated;
return evalElem;
return (Element) evaluated;
}
else
{

View File

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

View File

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