Skip to content

Commit

Permalink
Fix restyled issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Jul 22, 2021
1 parent 6585096 commit 9277d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/darwin/Framework/CHIP/CHIPThreadOperationalDataset.mm
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,12 @@ - (BOOL)_checkDataLength:(NSData *)data expectedLength:(size_t)expectedLength
return YES;
}


- (nullable instancetype)initWithData:(NSData *)data
{
chip::ByteSpan span = chip::ByteSpan((uint8_t *)data.bytes, data.length);
chip::ByteSpan span = chip::ByteSpan((uint8_t *) data.bytes, data.length);
auto dataset = chip::Thread::OperationalDataset();
CHIP_ERROR error = dataset.Init(span);
if (error != CHIP_NO_ERROR)
{
if (error != CHIP_NO_ERROR) {
CHIP_LOG_ERROR("Failed to parse data, cannot construct Operational Dataset. %d", error);
return nil;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ - (void)testThreadOperationalDataset
XCTAssertEqualObjects(reconstructed.PSKc, dataset.PSKc);
XCTAssertEqualObjects(reconstructed.extendedPANID, dataset.extendedPANID);
XCTAssertEqual(reconstructed.channel, dataset.channel);

}

- (void)testThreadOperationalDatasetInvalid
Expand Down

0 comments on commit 9277d20

Please sign in to comment.