File tree 1 file changed +3
-3
lines changed
src/NServiceBus.Core/Transports/Learning
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class LearningTransportInfrastructure : TransportInfrastructure
16
16
public LearningTransportInfrastructure ( SettingsHolder settings )
17
17
{
18
18
this . settings = settings ;
19
-
20
19
if ( ! settings . TryGet ( StorageLocationKey , out storagePath ) )
21
20
{
22
21
storagePath = FindStoragePath ( ) ;
@@ -56,9 +55,10 @@ static string FindStoragePath()
56
55
57
56
// When no solution file was found try to find a learning transport directory
58
57
// don't ignore casing due to linux support
59
- if ( Directory . EnumerateDirectories ( directory ) . Any ( dir => dir . Equals ( DefaultLearningTransportDirectory , StringComparison . Ordinal ) ) )
58
+ var learningTransportDirectory = Path . Combine ( directory , DefaultLearningTransportDirectory ) ;
59
+ if ( Directory . Exists ( learningTransportDirectory ) )
60
60
{
61
- return Path . Combine ( directory , DefaultLearningTransportDirectory ) ;
61
+ return learningTransportDirectory ;
62
62
}
63
63
64
64
var parent = Directory . GetParent ( directory ) ;
You can’t perform that action at this time.
0 commit comments