mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 11:39:44 -06:00
FF-1135 - added telegram plugin
This commit is contained in:
14
Telegram/ExtensionMethods.cs
Normal file
14
Telegram/ExtensionMethods.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace FileFlows.Telegram;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods
|
||||
/// </summary>
|
||||
internal static class ExtensionMethods
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns an empty string as null, otherwise returns the original string
|
||||
/// </summary>
|
||||
/// <param name="str">the input string</param>
|
||||
/// <returns>the string or null if empty</returns>
|
||||
public static string? EmptyAsNull(this string str) => str == string.Empty ? null : str;
|
||||
}
|
||||
Reference in New Issue
Block a user