andrey-petrenko-db commented on a change in pull request #4:
URL: 
https://github.com/apache/maven-build-cache-extension/pull/4#discussion_r789800751



##########
File path: 
src/main/java/org/apache/maven/buildcache/RemoteCacheRepositoryProvider.java
##########
@@ -42,8 +43,12 @@
     public RemoteCacheRepositoryProvider( CacheConfig config, PlexusContainer 
container )
             throws ComponentLookupException
     {
-        config.initialize();
-        String hint = config.getTransport();
+        String hint = "noop";
+        if ( config.initialize() == CacheState.INITIALIZED )

Review comment:
       maybe implement DisabledCacheConfig or NoopCacheConfig to remove such 
checks across code?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to