Skip to content

Commit

Permalink
Fix minor linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriyvan committed Jul 17, 2024
1 parent d41ccca commit a183b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit a183b0a

Please sign in to comment.