Skip to content

Commit

Permalink
Checking for value instead of key in
Browse files Browse the repository at this point in the history
RemoteArtifactRepositoryManagerAgentFactory

Fixes #3375
  • Loading branch information
vogella committed Jan 17, 2024
1 parent d099c82 commit 97a1805
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ private boolean getDisableP2MirrorsConfiguration() {

private String getMirrorProperty(String key) {
String value = System.getProperty(key);
if (key == null && mavenContext.getSession() != null) {
key = mavenContext.getSession().getSystemProperties().getProperty(key);
if (value == null && mavenContext.getSession() != null) {
value = mavenContext.getSession().getSystemProperties().getProperty(key);

if (key == null) {
key = mavenContext.getSession().getUserProperties().getProperty(key);
if (value == null) {
value = mavenContext.getSession().getUserProperties().getProperty(key);
}
}
return value;
Expand Down

0 comments on commit 97a1805

Please sign in to comment.