Skip to content

Commit

Permalink
Fix warnings (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthrp authored Oct 28, 2024
1 parent d7b5009 commit 38a71d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RqliteDotnet/Dto/QueryParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class QueryParameter
{
public QueryParamType ParamType { get; set; }

public object Value { get; set; }
public object? Value { get; set; }

public virtual string ToParamString()
{
Expand Down
4 changes: 2 additions & 2 deletions RqliteDotnet/RqliteClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ private string GetParameters(DbFlag? flags)
return result.ToString();
}

protected object GetValue(string valType, JsonElement el)
protected object? GetValue(string valType, JsonElement el)
{
if (el.ValueKind == JsonValueKind.Null)
{
return null;
}
object x = valType switch
object? x = valType switch
{
"text" => el.GetString(),
"integer" or "numeric" or "int" => el.GetInt32(),
Expand Down

0 comments on commit 38a71d2

Please sign in to comment.