mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Enable blank line rules. (#132)
This commit is contained in:
@@ -213,7 +213,6 @@ class BugReportService: BugReportServiceProtocol {
|
||||
|
||||
return zippedFiles
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private extension Data {
|
||||
|
||||
@@ -14,7 +14,6 @@ struct SubmitBugReportResponse: Decodable {
|
||||
}
|
||||
|
||||
protocol BugReportServiceProtocol {
|
||||
|
||||
var crashedLastRun: Bool { get }
|
||||
|
||||
func crash()
|
||||
|
||||
@@ -10,7 +10,6 @@ import Foundation
|
||||
import UIKit
|
||||
|
||||
class MockBugReportService: BugReportServiceProtocol {
|
||||
|
||||
func submitBugReport(text: String,
|
||||
includeLogs: Bool,
|
||||
includeCrashLog: Bool,
|
||||
@@ -24,5 +23,4 @@ class MockBugReportService: BugReportServiceProtocol {
|
||||
func crash() {
|
||||
// no-op
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ enum ScreenshotDetectorError: String, Error {
|
||||
|
||||
@MainActor
|
||||
class ScreenshotDetector {
|
||||
|
||||
var callback: (@MainActor(UIImage?, Error?) -> Void)?
|
||||
|
||||
/// Flag to whether ask for photos authorization by default if needed.
|
||||
@@ -80,11 +79,9 @@ class ScreenshotDetector {
|
||||
func fail(withError error: Error) {
|
||||
callback?(nil, error)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private extension PHAsset {
|
||||
|
||||
static func fetchLastScreenshot() -> PHAsset? {
|
||||
let options = PHFetchOptions()
|
||||
|
||||
@@ -99,7 +96,6 @@ private extension PHAsset {
|
||||
}
|
||||
|
||||
private extension PHImageRequestOptions {
|
||||
|
||||
static var highQualitySyncLocal: PHImageRequestOptions {
|
||||
let options = PHImageRequestOptions()
|
||||
options.deliveryMode = .highQualityFormat
|
||||
|
||||
Reference in New Issue
Block a user