Skip to content

Commit

Permalink
Should be string.Empty instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Jul 21, 2024
1 parent a200319 commit 69199f3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LrcParser/Model/Lyric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Lyric
/// <summary>
/// Text
/// </summary>
public string Text { get; set; } = "";
public string Text { get; set; } = string.Empty;

/// <summary>
/// Time tags
Expand Down
2 changes: 1 addition & 1 deletion LrcParser/Model/RubyTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace LrcParser.Model;

public class RubyTag
{
public string Text { get; set; } = "";
public string Text { get; set; } = string.Empty;

/// <summary>
/// Time tags
Expand Down
2 changes: 1 addition & 1 deletion LrcParser/Parser/Kar/Metadata/KarLyric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class KarLyric
/// <summary>
/// Text
/// </summary>
public string Text { get; set; } = "";
public string Text { get; set; } = string.Empty;

/// <summary>
/// Time tags
Expand Down
4 changes: 2 additions & 2 deletions LrcParser/Parser/Kar/Metadata/KarRuby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public class KarRuby
/// <summary>
/// Parent kanji
/// </summary>
public string Parent { get; set; } = "";
public string Parent { get; set; } = string.Empty;

/// <summary>
/// Ruby
/// </summary>
public string Ruby { get; set; } = "";
public string Ruby { get; set; } = string.Empty;

/// <summary>
/// Time tags
Expand Down
2 changes: 1 addition & 1 deletion LrcParser/Parser/Kar/Utils/KarTimedTextUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal static Tuple<string, SortedDictionary<TextIndex, int>> TimedTextToObjec

var startIndex = 0;

var text = "";
var text = string.Empty;
var timeTags = new SortedDictionary<TextIndex, int>();

foreach (var match in matchTimeTags.ToArray())
Expand Down
2 changes: 1 addition & 1 deletion LrcParser/Parser/Lrc/Metadata/LrcLyric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class LrcLyric
/// <summary>
/// Text
/// </summary>
public string Text { get; set; } = "";
public string Text { get; set; } = string.Empty;

/// <summary>
/// Time tags
Expand Down
2 changes: 1 addition & 1 deletion LrcParser/Parser/Lrc/Utils/LrcTimedTextUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal static Tuple<string, SortedDictionary<TextIndex, int>> TimedTextToObjec

var startIndex = 0;

var text = "";
var text = string.Empty;
var timeTags = new SortedDictionary<TextIndex, int>();

foreach (var match in matchTimeTags.ToArray())
Expand Down

0 comments on commit 69199f3

Please sign in to comment.