Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed Nov 28, 2024
1 parent 9f213a8 commit d336536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions printing/macos/Classes/PrintJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,11 @@ public class PrintJob: NSView, NSSharingServicePickerDelegate {
DispatchQueue.main.asyncAfter(deadline: when) {
webView.createPDF { result in
switch result {
case .success(let data):
case let .success(data):
self.printing.onHtmlRendered(printJob: self, pdfData: data)
let fileManager = FileManager.default
try? fileManager.removeItem(atPath: tempFile)
case .failure(let error):
case let .failure(error):
self.printing.onHtmlError(printJob: self, error: "Unable to create PDF: \(error.localizedDescription)")
}
}
Expand Down Expand Up @@ -306,7 +306,7 @@ public class PrintJob: NSView, NSSharingServicePickerDelegate {
var html = false
if #available(macOS 11.0, *) {
html = true
}
}
let data: NSDictionary = [
"directPrint": true,
"dynamicLayout": true,
Expand Down

0 comments on commit d336536

Please sign in to comment.