Skip to content

Commit 910b083

Browse files
author
Cédric Belin
committed
Code optimization
1 parent be2b6b0 commit 910b083

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/author.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public sealed class Author(string ipAddress) {
4242
/// Converts this object into a dictionary.
4343
/// </summary>
4444
/// <returns>The dictionary corresponding to this object.</returns>
45-
internal IDictionary<string, string> ToDictionary() {
45+
internal Dictionary<string, string> ToDictionary() {
4646
var map = new Dictionary<string, string> { ["user_ip"] = IPAddress.ToString() };
4747
if (!string.IsNullOrWhiteSpace(Email)) map["comment_author_email"] = Email;
4848
if (!string.IsNullOrWhiteSpace(Name)) map["comment_author"] = Name;

src/blog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed class Blog(string url) {
2727
/// Converts this object into a dictionary.
2828
/// </summary>
2929
/// <returns>The dictionary corresponding to this object.</returns>
30-
internal IDictionary<string, string> ToDictionary() {
30+
internal Dictionary<string, string> ToDictionary() {
3131
var map = new Dictionary<string, string> { ["blog"] = Url.ToString() };
3232
if (Charset is not null) map["blog_charset"] = Charset.WebName;
3333
if (Languages.Count != 0) map["blog_lang"] = string.Join(',', Languages);

src/comment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public sealed class Comment(Author author) {
5555
/// Converts this object into a dictionary.
5656
/// </summary>
5757
/// <returns>The dictionary corresponding to this object.</returns>
58-
internal IDictionary<string, string> ToDictionary() {
58+
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);

0 commit comments

Comments
 (0)