if ( evaluated instanceof Element )
{
- Element evalElem = (Element) evaluated;
- return evalElem;
+ return (Element) evaluated;
}
else
{
try
{
- boolean res = userRepositories.isAuthorizedToDeleteArtifacts( userName, repoId );
- return res;
+ return userRepositories.isAuthorizedToDeleteArtifacts( userName, repoId );
}
catch ( ArchivaSecurityException e )
{
{
// 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 )