[sensorkit] Add nullability to (generated and manual) bindings (#14881)

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
This commit is contained in:
TJ Lambert 2022-05-04 11:43:54 -05:00 коммит произвёл GitHub
Родитель d25d6bea1c
Коммит 4f1ad9cb18
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -11,7 +11,7 @@ namespace SensorKit {
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 ());
}