aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-04 20:54:18 +0800
committercrupest <crupest@outlook.com>2021-02-04 20:54:18 +0800
commit1af0c82144a0f28f86922ecda04b159a553c699e (patch)
tree3c91d43eefce21b1f9812b0d753ae18394dc2247 /BackEnd/Timeline/Models
parent78b3cca725bd508e248749eb3ca5cd6f3ea0f8ec (diff)
downloadtimeline-1af0c82144a0f28f86922ecda04b159a553c699e.tar.gz
timeline-1af0c82144a0f28f86922ecda04b159a553c699e.tar.bz2
timeline-1af0c82144a0f28f86922ecda04b159a553c699e.zip
...
Diffstat (limited to 'BackEnd/Timeline/Models')
-rw-r--r--BackEnd/Timeline/Models/Validation/Validator.cs2
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());