Skip to content

Commit a76fb58

Browse files
committed
Clean code
1 parent f5d18a5 commit a76fb58

6 files changed

Lines changed: 9 additions & 15 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ body:
4747
- ".NET Framework 4.5.x"
4848
- ".NET Framework 4.6.x"
4949
- ".NET Framework 4.7.x"
50-
- ".NET Framework 4.8"
50+
- ".NET Framework 4.8.x"
5151
- ".NET Standard 1.x"
5252
- ".NET Standard 2.x"
5353
- ".NET Core App 1.x"
@@ -66,7 +66,6 @@ body:
6666
- "Windows"
6767
- "Linux"
6868
- "MacOS"
69-
- "UWP"
7069
- "Others"
7170
- type: textarea
7271
attributes:

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ env:
1414
jobs:
1515
build-and-test:
1616

17-
name: build-and-test-${{matrix.os}}
18-
runs-on: ${{matrix.os}}
19-
strategy:
20-
matrix:
21-
os: [windows-latest]
17+
name: build-and-test
18+
runs-on: windows-latest
2219

2320
steps:
2421
- uses: actions/checkout@v2

AdvancedSharpAdbClient.Tests/Extensions/UtilitiesTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ public class UtilitiesTests
1111
[Fact]
1212
public void TryParseTest()
1313
{
14-
DeviceState result;
15-
Assert.True(Utilities.TryParse("BootLoader", false, out result));
14+
Assert.True(Utilities.TryParse("BootLoader", false, out DeviceState result));
1615
Assert.Equal(DeviceState.BootLoader, result);
1716
Assert.True(Utilities.TryParse("Bootloader", true, out result));
1817
Assert.Equal(DeviceState.BootLoader, result);

AdvancedSharpAdbClient/AdbClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace AdvancedSharpAdbClient
2929
/// call the <see cref="GetDevices"/> method.
3030
/// </para>
3131
/// <para>
32-
/// To run a command on a device, you can use the <see cref="ExecuteRemoteCommandAsync(string, DeviceData, IShellOutputReceiver, CancellationToken, int)"/>
32+
/// To run a command on a device, you can use the <see cref="ExecuteRemoteCommandAsync(string, DeviceData, IShellOutputReceiver, CancellationToken)"/>
3333
/// method.
3434
/// </para>
3535
/// </summary>

AdvancedSharpAdbClient/Extensions/Utilities.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.IO;
33
using System.Net.Sockets;
44
using System.Threading.Tasks;
5-
using System.Xml;
65

76
namespace AdvancedSharpAdbClient
87
{
@@ -62,7 +61,7 @@ public static long ToUnixTimeSeconds(this DateTimeOffset dateTimeOffset) =>
6261
#endif
6362

6463
#if NETSTANDARD1_3
65-
public static IAsyncResult BeginReceive(this Socket socket,byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback? callback, object? state)
64+
public static IAsyncResult BeginReceive(this Socket socket, byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback? callback, object? state)
6665
{
6766
return TaskToApm.Begin(socket.ReceiveAsync(buffer, offset, size, socketFlags, default), callback, state);
6867
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Added important features.
2929
- .NET Framework 4.5.2
3030
- .NET Framework 4.6.2
3131
- .NET Framework 4.7.2
32-
- .NET Framework 4.8
33-
- .NET Standard 1.3 (Not full supports)
32+
- .NET Framework 4.8.1
33+
- .NET Standard 1.3 (Not fully supported)
3434
- .NET Standard 2.0 (Support UWP if you don't use unsupport api like Process)
3535
- .NET Core App 3.1
3636
- .NET 6.0
@@ -437,7 +437,7 @@ static async void Main(string[] args)
437437
```
438438

439439
### Encoding
440-
Default encoding is UTF8,if you want to change it, use
440+
Default encoding is UTF8, if you want to change it, use
441441

442442
```c#
443443
AdvancedAdbClient.SetEncoding(Encoding.ASCII);

0 commit comments

Comments
 (0)