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
commitad1e58e80ca5e3eb1e72b93affa82082a3ee861b (patch)
treea56c23897e0354e0d8d85b514bdbfe52386a78bd /BackEnd/Timeline/Models
parentc9a7b944a0aa38bc44677bf62532c1811aded961 (diff)
downloadtimeline-ad1e58e80ca5e3eb1e72b93affa82082a3ee861b.tar.gz
timeline-ad1e58e80ca5e3eb1e72b93affa82082a3ee861b.tar.bz2
timeline-ad1e58e80ca5e3eb1e72b93affa82082a3ee861b.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());