mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-05-02 10:29:56 -05:00
FF-1353 - created pushover plugin
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace FileFlows.Pushover;
|
||||
|
||||
/// <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