Skip to content

Commit 18ebf07

Browse files
author
Cédric Belin
committed
Code optimization
1 parent 705016c commit 18ebf07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Comment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ internal Dictionary<string, string> ToDictionary() {
5959
var map = Author.ToDictionary();
6060
if (!string.IsNullOrWhiteSpace(Content)) map["comment_content"] = Content;
6161
// TODO if (Context.Count > 0) map["comment_context"] = string.Join(',', Context);
62-
if (Date is not null) map["comment_date_gmt"] = Date?.ToUniversalTime().ToString("o")!;
62+
if (Date is not null) map["comment_date_gmt"] = Date.Value.ToUniversalTime().ToString("o");
6363
if (Permalink is not null) map["permalink"] = Permalink.ToString();
64-
if (PostModified is not null) map["comment_post_modified_gmt"] = PostModified?.ToUniversalTime().ToString("o")!;
64+
if (PostModified is not null) map["comment_post_modified_gmt"] = PostModified.Value.ToUniversalTime().ToString("o");
6565
if (!string.IsNullOrWhiteSpace(RecheckReason)) map["recheck_reason"] = RecheckReason;
6666
if (Referrer is not null) map["referrer"] = Referrer.ToString();
6767
if (!string.IsNullOrWhiteSpace(Type)) map["comment_type"] = Type;

0 commit comments

Comments
 (0)