Skip to content

Commit

Permalink
Fix line length
Browse files Browse the repository at this point in the history
  • Loading branch information
hros18 committed Apr 30, 2021
1 parent 4630258 commit a019c1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Blogifier.Core/Providers/BucketProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,15 @@ public async Task<ThemeSettings> GetThemeSettings(string theme)

public async Task<bool> SaveThemeSettings(string theme, ThemeSettings settings)
{
var fileName = Path.Combine(ContentRoot, $"wwwroot{_slash}themes{_slash}{theme.ToLower()}{_slash}settings.json");
var fileName = Path.
Combine(ContentRoot, $"wwwroot{_slash}themes{_slash}{theme.ToLower()}{_slash}settings.json");
try
{
if (File.Exists(fileName))
File.Delete(fileName);

var options = new JsonSerializerOptions { WriteIndented = true, PropertyNameCaseInsensitive = true };
var options = new JsonSerializerOptions
{ WriteIndented = true, PropertyNameCaseInsensitive = true };

string jsonString = JsonSerializer.Serialize(settings, options);

Expand Down
7 changes: 5 additions & 2 deletions src/Blogifier/Controllers/ExportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public async Task<IActionResult> ExportToFileType(string fileType)
using (MemoryStream stream = new MemoryStream())
{
workBook.SaveAs(stream);
return File(stream.ToArray(), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "Subscribers.xlsx");
return File(stream.ToArray(),
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"Subscribers.xlsx");
}
}
case "txt":
Expand Down Expand Up @@ -140,7 +142,8 @@ private DataTable GetEmails(List<Subscriber> subscribers)
new DataColumn("Blog") });
foreach (var s in subscribers)
{
dtSubs.Rows.Add(s.Id, s.Email.ToString(), s.Ip.ToString(), s.Country.ToString(), s.Region.ToString(), s.Blog.ToString());
dtSubs.Rows.Add(s.Id, s.Email.ToString(), s.Ip.ToString(),
s.Country.ToString(), s.Region.ToString(), s.Blog.ToString());
}

return dtSubs;
Expand Down

0 comments on commit a019c1d

Please sign in to comment.