From 4f1ad9cb18f9ea081eaf2397d6c9e8e7184aa546 Mon Sep 17 00:00:00 2001 From: TJ Lambert <50846373+tj-devel709@users.noreply.github.com> Date: Wed, 4 May 2022 11:43:54 -0500 Subject: [PATCH] [sensorkit] Add nullability to (generated and manual) bindings (#14881) Co-authored-by: TJ Lambert --- src/SensorKit/SRSensor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SensorKit/SRSensor.cs b/src/SensorKit/SRSensor.cs index 70315d933697..e2651cf211a5 100644 --- a/src/SensorKit/SRSensor.cs +++ b/src/SensorKit/SRSensor.cs @@ -11,7 +11,7 @@ public partial class SRSensorExtensions { public static SRSensor GetSensorForDeletionRecords (this SRSensor self) { var constant = self.GetConstant (); - if (constant == null) + if (constant is null) return SRSensor.Invalid; return GetValue (constant._GetSensorForDeletionRecordsFromSensor ()); }