Skip to content

Commit f3f0239

Browse files
committed
Use static methods where possible.
1 parent 21dd66c commit f3f0239

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Renci.SshNet/ScpClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private void SendConfirmation(IChannel channel, byte errorCode, string message)
336336
/// Checks the return code.
337337
/// </summary>
338338
/// <param name="input">The output stream.</param>
339-
private void CheckReturnCode(Stream input)
339+
private static void CheckReturnCode(Stream input)
340340
{
341341
var b = ReadByte(input);
342342

@@ -348,17 +348,17 @@ private void CheckReturnCode(Stream input)
348348
}
349349
}
350350

351-
private void SendData(IChannel channel, string command)
351+
private static void SendData(IChannel channel, string command)
352352
{
353353
channel.SendData(SshData.Utf8.GetBytes(command));
354354
}
355355

356-
private void SendData(IChannel channel, byte[] buffer, int length)
356+
private static void SendData(IChannel channel, byte[] buffer, int length)
357357
{
358358
channel.SendData(buffer, 0, length);
359359
}
360360

361-
private void SendData(IChannel channel, byte[] buffer)
361+
private static void SendData(IChannel channel, byte[] buffer)
362362
{
363363
channel.SendData(buffer);
364364
}

0 commit comments

Comments
 (0)