File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Linq ;
3
2
using System . Text ;
4
3
using System . Threading ;
5
4
using Renci . SshNet . Common ;
@@ -90,7 +89,7 @@ public string GetCanonicalPath(string path)
90
89
91
90
if ( realPathFiles != null )
92
91
{
93
- canonizedPath = realPathFiles . First ( ) . Key ;
92
+ canonizedPath = realPathFiles [ 0 ] . Key ;
94
93
}
95
94
96
95
if ( ! string . IsNullOrEmpty ( canonizedPath ) )
@@ -114,7 +113,7 @@ public string GetCanonicalPath(string path)
114
113
115
114
if ( realPathFiles != null )
116
115
{
117
- canonizedPath = realPathFiles . First ( ) . Key ;
116
+ canonizedPath = realPathFiles [ 0 ] . Key ;
118
117
}
119
118
120
119
if ( string . IsNullOrEmpty ( canonizedPath ) )
@@ -158,7 +157,7 @@ protected override void OnChannelOpen()
158
157
}
159
158
160
159
// Resolve current directory
161
- WorkingDirectory = RequestRealPath ( "." ) . First ( ) . Key ;
160
+ WorkingDirectory = RequestRealPath ( "." ) [ 0 ] . Key ;
162
161
}
163
162
164
163
protected override void OnDataReceived ( byte [ ] data )
You can’t perform that action at this time.
0 commit comments