Skip to content

Commit

Permalink
Duplicate serialize method fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Dec 5, 2022
1 parent 48ea1b4 commit 32d862e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions NeuroSpeech.Eternity/EternityContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,6 @@ void BuildParameters(MethodInfo method, object?[] parameters, IServiceProvider?
}
}

private string Serialize<T>(T model)
{
return JsonSerializer.Serialize<T>(model, this.options);
}

private T Deserialize<T>(string? response)
{
if (string.IsNullOrEmpty(response))
Expand Down Expand Up @@ -687,7 +682,7 @@ private async Task SaveWorkflow(EternityEntity workflowEntity, DateTimeOffset et
await repository.SaveAsync(workflowEntity);
}

internal string Serialize<TInput>(TInput? input)
internal string Serialize<TInput>(TInput input)
{
return JsonSerializer.Serialize(input, options);
}
Expand Down

0 comments on commit 32d862e

Please sign in to comment.