Skip to content

Commit 058b06a

Browse files
author
Vicente.Yu
committed
禁用 可能的 null 引用赋值 警告
Signed-off-by: Vicente.Yu <^@^>
1 parent 9703476 commit 058b06a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WebApiClientCore.Analyzers.SourceGenerator/HttpApiCodeBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public override string ToString()
9595
{
9696
builder.AppendLine(item);
9797
}
98+
builder.AppendLine($"#pragma warning disable CS8601");
9899
builder.AppendLine($"#pragma warning disable 1591");
99100
builder.AppendLine($"namespace {this.Namespace}");
100101
builder.AppendLine("{");
@@ -122,6 +123,7 @@ public override string ToString()
122123
builder.AppendLine("\t}");
123124
builder.AppendLine("}");
124125
builder.AppendLine("#pragma warning restore 1591");
126+
builder.AppendLine("#pragma warning restore CS8601");
125127

126128
// System.Diagnostics.Debugger.Launch();
127129
return builder.ToString();

0 commit comments

Comments
 (0)