Skip to content

Commit

Permalink
fix: nullability annotation to support code analysis
Browse files Browse the repository at this point in the history
Added MemberNotNullWhen attribute to CloudflareResponse<>.Success property for better code analysis by IDEs
  • Loading branch information
alperensert committed Apr 7, 2024
1 parent 4977ac5 commit dbecb6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CloudflareDnsync.Models/Responses/CloudflareResponse.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using Newtonsoft.Json;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;

namespace CloudflareDnsync.Models.Responses;

public class CloudflareResponse<T>
{
[MemberNotNullWhen(true, nameof(Result))]
[JsonProperty("success")]
public bool Success { get; init; }

Expand Down

0 comments on commit dbecb6b

Please sign in to comment.