Skip to content

Commit

Permalink
Some fixes for the linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-spruceid committed Sep 5, 2024
1 parent e2763e2 commit dee7aaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/MobileSdk/MDocHolderBLECentralConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import CoreBluetooth
import Foundation

public protocol MDocHolderBLECentralConnectionDelegate {
public protocol MDocHolderBLECentralConnectionDelegate: AnyObject {
func request(_ data: Data)
func sendUpdate(bytes: Int, total: Int, fraction: Double)
func sendComplete()
Expand Down
6 changes: 2 additions & 4 deletions Sources/MobileSdk/MDocReaderBLEPeripheral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,14 @@ class MDocReaderBLEPeripheral: NSObject {
let readC = readCharacteristic,
let writeC = writeCharacteristic,
let identC = identCharacteristic,
let l2capC = l2capCharacteristic
{
let l2capC = l2capCharacteristic {
service.characteristics = (service.characteristics ?? []) + [stateC, readC, writeC, identC, l2capC]
}
} else {
if let stateC = stateCharacteristic,
let readC = readCharacteristic,
let writeC = writeCharacteristic,
let identC = identCharacteristic
{
let identC = identCharacteristic {
service.characteristics = (service.characteristics ?? []) + [stateC, readC, writeC, identC]
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MobileSdk/MDocReaderBLEPeripheralConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import CoreBluetooth
import Foundation

protocol MDocReaderBLEPeripheralConnectionDelegate {
protocol MDocReaderBLEPeripheralConnectionDelegate: AnyObject {
func streamOpen()
func sentData(_ bytes: Int)
func receivedData(_ data: Data)
Expand Down

0 comments on commit dee7aaa

Please sign in to comment.