diff --git a/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java b/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java index 238b5197a2..f8f297e717 100644 --- a/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java +++ b/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java @@ -293,14 +293,11 @@ public class DefaultProfileManager if ( activator.canDetermineActivation( profile, context ) ) { - boolean result = activator.isActive( profile, context ); - - if ( result ) + if ( activator.isActive( profile, context ) ) { container.getLogger().debug( "Profile: " + profile.getId() + " is active. (source: " + profile.getSource() + ")" ); + return true; } - - return result; } }