Merge pull request #5 from StevanFreeborn/stevanfreeborn/fix/remove-double-quotes-from-message-format-when-present

fix: remove double quotes from start and end of message format"
This commit is contained in:
Stevan Freeborn
2025-06-15 09:18:28 -07:00
committed by GitHub
7 changed files with 3 additions and 20 deletions
@@ -56,7 +56,7 @@ internal static class NotificationHandler
var msg = string.Format(
CultureInfo.InvariantCulture,
discordNotificationOptions.CurrentValue.MessageFormat,
discordNotificationOptions.CurrentValue.MessageFormat.Trim('"'),
videoId
);
@@ -1,13 +1,3 @@
using System.Text;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.Extensions.Options;
using StevesBot.Library.Discord.Rest;
using StevesBot.Library.Discord.Rest.Requests;
using StevesBot.Webhook.YouTube.Handlers;
namespace StevesBot.Webhook.Tests.Unit;
public class NotificationHandlerTests
@@ -1,4 +1,3 @@
namespace StevesBot.Webhook.Tests.Unit;
public sealed class PubSubClientTests : IDisposable
@@ -1,5 +1,3 @@
using System.Globalization;
namespace StevesBot.Webhook.Tests.Unit;
public class VerifySubscriptionHandlerTests
@@ -1,7 +1,3 @@
using System.Text.Json;
using Microsoft.Extensions.Options;
namespace StevesBot.Webhook.Tests.Unit;
public sealed class YouTubeDataApiClientTests : IDisposable
@@ -1,5 +1,3 @@
using StevesBot.Webhook.YouTube.Data;
namespace StevesBot.Webhook.Tests.Unit;
public class YouTubeVideoListResponseTests
@@ -1,7 +1,9 @@
global using System.Collections.Concurrent;
global using System.Diagnostics;
global using System.Globalization;
global using System.Net;
global using System.Text;
global using System.Text.Json;
global using Microsoft.AspNetCore.Http;
global using Microsoft.AspNetCore.Http.HttpResults;