style(work): clean code

This commit is contained in:
Fu Diwei 2022-01-21 12:36:07 +08:00
parent b4add56432
commit 5f8c5e0ae7
7 changed files with 8 additions and 34 deletions

View File

@ -1,12 +1,9 @@
using System.Linq; using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
namespace System.Text.Json.Converters namespace System.Text.Json.Converters
{ {
internal class TextualIntegerArrayWithPipeSplitConverter : JsonConverter<int[]?> internal class TextualIntegerArrayWithPipeSplitConverter : JsonConverter<int[]?>
{ {
private const string SEPARATOR = "|";
public override int[]? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) public override int[]? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{ {
if (reader.TokenType == JsonTokenType.Null) if (reader.TokenType == JsonTokenType.Null)

View File

@ -1,8 +1,4 @@
using System; using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit; using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests

View File

@ -1,10 +1,5 @@
using System; using System.IO;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection; using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Xunit; using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests

View File

@ -1,10 +1,4 @@
using System; using Xunit;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{ {

View File

@ -1,10 +1,4 @@
using System; using Xunit;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{ {

View File

@ -1,8 +1,6 @@
using System; namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{ {
class TestClients internal class TestClients
{ {
static TestClients() static TestClients()
{ {

View File

@ -4,7 +4,7 @@ using System.Text.Json;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{ {
class TestConfigs internal class TestConfigs
{ {
static TestConfigs() static TestConfigs()
{ {