Update danger message and brew dependencies. (#683)

This commit is contained in:
Doug
2023-03-08 10:59:49 +00:00
committed by GitHub
parent d3b304e92e
commit 7d35876753
8 changed files with 19 additions and 19 deletions
@@ -243,7 +243,7 @@ private extension Data {
case .file(let url):
appendString(string: "; filename=\"\(url.lastPathComponent)\"\r\n")
appendString(string: "Content-Type: \"content-type header\"\r\n\r\n")
append(try Data(contentsOf: url))
try append(Data(contentsOf: url))
appendString(string: "\r\n")
}
}
@@ -47,7 +47,7 @@ class ScreenshotDetector {
findScreenshot()
} else if authStatus == .notDetermined, autoRequestPHAuthorization {
Task {
self.handleAuthStatus(await PHPhotoLibrary.requestAuthorization(for: .readWrite))
await self.handleAuthStatus(PHPhotoLibrary.requestAuthorization(for: .readWrite))
}
} else {
fail(withError: ScreenshotDetectorError.notAuthorized)