mirror of https://github.com/apache/archiva.git
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:
parent
0daef64c18
commit
7afb00d1c8
|
@ -158,8 +158,7 @@ public class XMLReader
|
|||
|
||||
if ( evaluated instanceof Element )
|
||||
{
|
||||
Element evalElem = (Element) evaluated;
|
||||
return evalElem;
|
||||
return (Element) evaluated;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1063,8 +1063,7 @@ public class DefaultRepositoriesService
|
|||
|
||||
try
|
||||
{
|
||||
boolean res = userRepositories.isAuthorizedToDeleteArtifacts( userName, repoId );
|
||||
return res;
|
||||
return userRepositories.isAuthorizedToDeleteArtifacts( userName, repoId );
|
||||
}
|
||||
catch ( ArchivaSecurityException e )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue