Skip to content

Commit

Permalink
Remove some unnecessary nullable annotations.
Browse files Browse the repository at this point in the history
Just need to initialize things in the initializer list instead of
default-constructing them as nil and then initializing them.
  • Loading branch information
bzbarsky-apple committed Apr 27, 2022
1 parent 99988e5 commit 632e313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CHIPPersistentStorageDelegateBridge : public chip::PersistentStorageDelega
CHIP_ERROR SyncDeleteKeyValue(const char * key) override;

private:
_Nullable id<CHIPPersistentStorageDelegate> mDelegate;
_Nullable dispatch_queue_t mWorkQueue;
id<CHIPPersistentStorageDelegate> mDelegate;
dispatch_queue_t mWorkQueue;
};

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

CHIPPersistentStorageDelegateBridge::CHIPPersistentStorageDelegateBridge(id<CHIPPersistentStorageDelegate> delegate)
: mDelegate(delegate)
, mWorkQueue(dispatch_queue_create("com.zigbee.chip.framework.storage.workqueue", DISPATCH_QUEUE_SERIAL))
{
mWorkQueue = dispatch_queue_create("com.zigbee.chip.framework.storage.workqueue", DISPATCH_QUEUE_SERIAL);
}

CHIPPersistentStorageDelegateBridge::~CHIPPersistentStorageDelegateBridge(void) {}
Expand Down

0 comments on commit 632e313

Please sign in to comment.