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 )
|
if ( evaluated instanceof Element )
|
||||||
{
|
{
|
||||||
Element evalElem = (Element) evaluated;
|
return (Element) evaluated;
|
||||||
return evalElem;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue