Skip to content

Commit 119c5d2

Browse files
committed
Use string.Empty
1 parent 2179e14 commit 119c5d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rubberduck.Core/Common/ExportFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static string Csv(object[][] data, string title, ColumnInfo[] columnInfos
7575

7676
private static string CsvEncode(object value)
7777
{
78-
var s = "";
78+
var s = string.Empty;
7979
if (value is string)
8080
{
8181
s = value.ToString();

Rubberduck.Core/UI/Inspections/InspectionResultsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ private void ExecuteCopyResultsCommand(object parameter)
662662

663663
var title = string.Format(resource, DateTime.Now.ToString(CultureInfo.InvariantCulture), resultArray.Count());
664664

665-
var textResults = title + Environment.NewLine + string.Join("", Results.OfType<IExportable>().Select(result => result.ToClipboardString() + Environment.NewLine).ToArray());
665+
var textResults = title + Environment.NewLine + string.Join(string.Empty, Results.OfType<IExportable>().Select(result => result.ToClipboardString() + Environment.NewLine).ToArray());
666666
var csvResults = ExportFormatter.Csv(resultArray, title, ColumnInformation);
667667
var htmlResults = ExportFormatter.HtmlClipboardFragment(resultArray, title, ColumnInformation);
668668
var rtfResults = ExportFormatter.RTF(resultArray, title);

0 commit comments

Comments
 (0)