Skip to content

Commit

Permalink
Use weak reference in a unit test too
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Jul 11, 2023
1 parent 4fc9a02 commit f210ed6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private class QRCodeScanningSessionMock: QRCodeScanningSession {
var hasCamera: Bool = true
var session: AVCaptureSession? = nil
var previewLayer: CALayer? = nil
var scanningDelegate: QRCodeScanningDelegate? = nil
weak var scanningDelegate: QRCodeScanningDelegate? = nil

var isConfigured: Bool = false
func configure() {
Expand Down

0 comments on commit f210ed6

Please sign in to comment.