File tree 1 file changed +3
-4
lines changed
src/NServiceBus.Core/Transports/Learning
1 file changed +3
-4
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 ( ) ;
@@ -55,10 +54,10 @@ static string FindStoragePath()
55
54
}
56
55
57
56
// When no solution file was found try to find a learning transport directory
58
- // don't ignore casing due to linux support
59
- if ( Directory . EnumerateDirectories ( directory ) . Any ( dir => dir . Equals ( DefaultLearningTransportDirectory , StringComparison . Ordinal ) ) )
57
+ var learningTransportDirectory = Path . Combine ( directory , DefaultLearningTransportDirectory ) ;
58
+ if ( Directory . Exists ( learningTransportDirectory ) )
60
59
{
61
- return Path . Combine ( directory , DefaultLearningTransportDirectory ) ;
60
+ return learningTransportDirectory ;
62
61
}
63
62
64
63
var parent = Directory . GetParent ( directory ) ;
You can’t perform that action at this time.
0 commit comments