From c6b37307b0e875adedcfb1de0869afcdd3254142 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 16 Mar 2020 21:07:54 -0400 Subject: [PATCH] use string.Empty --- .../Models/Domain/PasswordGeneratorPolicyOptions.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Core/Models/Domain/PasswordGeneratorPolicyOptions.cs b/src/Core/Models/Domain/PasswordGeneratorPolicyOptions.cs index 70a844fc0..9d6e0d8b5 100644 --- a/src/Core/Models/Domain/PasswordGeneratorPolicyOptions.cs +++ b/src/Core/Models/Domain/PasswordGeneratorPolicyOptions.cs @@ -2,7 +2,7 @@ { public class PasswordGeneratorPolicyOptions { - public string DefaultType { get; set; } = ""; + public string DefaultType { get; set; } = string.Empty; public int MinLength { get; set; } public bool UseUppercase { get; set; } public bool UseLowercase { get; set; } @@ -13,13 +13,13 @@ public int MinNumberOfWords { get; set; } public bool Capitalize { get; set; } public bool IncludeNumber { get; set; } - + public bool InEffect() { - return DefaultType != "" || - MinLength > 0 || - NumberCount > 0 || - SpecialCount > 0 || + return DefaultType != string.Empty || + MinLength > 0 || + NumberCount > 0 || + SpecialCount > 0 || UseUppercase || UseLowercase || UseNumbers ||