Skip to content

Commit 5af0e0a

Browse files
ソースコードのリファクタリング。
1 parent 7e87c37 commit 5af0e0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dConnectDevicePlugin/dConnectDeviceIRKit/dConnectDeviceIRKit/Classes/DPIRKitDevicePlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ - (void) dealloc {
137137

138138
- (DPIRKitDevice *) deviceForServiceId:(NSString *)serviceId {
139139
@synchronized (_devices) {
140-
return [_devices objectForKey:serviceId];
140+
return _devices[serviceId];
141141
}
142142
}
143143

@@ -425,7 +425,7 @@ - (DConnectServiceInformationProfileConnectState) profile:(DConnectServiceInform
425425
DConnectServiceInformationProfileConnectState state = DConnectServiceInformationProfileConnectStateOff;
426426
@synchronized (_devices) {
427427
if (_devices.count > 0) {
428-
DPIRKitDevice *device = [_devices objectForKey:serviceId];
428+
DPIRKitDevice *device = _devices[serviceId];
429429
if (device) {
430430
state = DConnectServiceInformationProfileConnectStateOn;
431431
}

0 commit comments

Comments
 (0)