Skip to content

Commit 70f80ea

Browse files
committed
Fixed compiler warnings
1 parent 2aa7d70 commit 70f80ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DotNext/Net/Http/HttpEndPoint.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, Re
168168
&& writer.TryFormat(Port, format, provider)
169169
&& writer.TryAdd('/'))
170170
? writer.WrittenCount
171-
: default;
171+
: 0;
172172

173173
return success;
174174
}
@@ -185,7 +185,7 @@ bool IUtf8SpanFormattable.TryFormat(Span<byte> destination, out int bytesWritten
185185
&& writer.TryFormat(Port, format, provider)
186186
&& writer.TryAdd((byte)'/'))
187187
? writer.WrittenCount
188-
: default;
188+
: 0;
189189

190190
return success;
191191
}

0 commit comments

Comments
 (0)