Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor linter issues #167

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/bitmapImportExport/Bitmap+JPEG.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public extension Bitmap {
/// Alpha of background itself is ignored.
func jpegData(blending background: Rgba = .white) throws -> Data {
let rgb: [JPEG.RGB] = backing
//.lazy // TODO: make lazy work!
// .lazy // TODO: make lazy work!
.chunks(ofCount: 4)
.map { Rgba($0).blending(background: background) }
.map { JPEG.RGB($0.r, $0.g, $0.b) }
Expand Down
2 changes: 1 addition & 1 deletion Sources/bitmapImportExport/JPEG.Data.Rectangular.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extension JPEG.Data.Rectangular<JPEG.Common> {
switch m {
case .exif(let exif):
if let orientationTag = exif[tag: 0x112] {
let orientation = orientationTag.box.endianness == .littleEndian
let orientation = orientationTag.box.endianness == .littleEndian
? orientationTag.box.contents.0 : orientationTag.box.contents.1
return Int(orientation)
}
Expand Down