mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
Changed DeviceFactory.GetSecret(SecretsPropertiesConfig data) to return an empty string instead of null on a failed retrieval
This commit is contained in:
parent
8643ed2caf
commit
452d0a5a39
1 changed files with 2 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ namespace PepperDash.Essentials.Core
|
|||
Debug.Console(1,
|
||||
"Unable to retrieve secret {0}{1} - Make sure you've added it to the secrets provider",
|
||||
data.Provider, data.Key);
|
||||
return null;
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -121,8 +121,7 @@ namespace PepperDash.Essentials.Core
|
|||
/// </summary>
|
||||
/// <param name="dc"></param>
|
||||
/// <returns></returns>
|
||||
public static
|
||||
IKeyed GetDevice(DeviceConfig dc)
|
||||
public static IKeyed GetDevice(DeviceConfig dc)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue