diff options
author | crupest <crupest@outlook.com> | 2021-02-04 20:54:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-04 20:54:18 +0800 |
commit | 1af0c82144a0f28f86922ecda04b159a553c699e (patch) | |
tree | 3c91d43eefce21b1f9812b0d753ae18394dc2247 /BackEnd/Timeline/Models/Validation | |
parent | 78b3cca725bd508e248749eb3ca5cd6f3ea0f8ec (diff) | |
download | timeline-1af0c82144a0f28f86922ecda04b159a553c699e.tar.gz timeline-1af0c82144a0f28f86922ecda04b159a553c699e.tar.bz2 timeline-1af0c82144a0f28f86922ecda04b159a553c699e.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Models/Validation')
-rw-r--r-- | BackEnd/Timeline/Models/Validation/Validator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Models/Validation/Validator.cs b/BackEnd/Timeline/Models/Validation/Validator.cs index b7e754d3..ec6cc0af 100644 --- a/BackEnd/Timeline/Models/Validation/Validator.cs +++ b/BackEnd/Timeline/Models/Validation/Validator.cs @@ -51,7 +51,7 @@ namespace Timeline.Models.Validation public (bool, string) Validate(object? value)
{
- if (value == null)
+ if (value is null)
{
if (PermitNull)
return (true, GetSuccessMessage());
|