Skip to content

Commit 419e624

Browse files
committed
fixed typos
1 parent c65ab5b commit 419e624

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/query.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function query(filename::AbstractString)
320320
error("Some formats with extension ", ext, " have no magic bytes; use `File{format\"FMT\"}(filename)` to resolve the ambiguity.")
321321
end
322322
end
323-
!isfile(filename) && File{unknown_df}(filename) # (no extension || no magic byte) && no file
323+
!isfile(filename) && return File{unknown_df}(filename) # (no extension || no magic byte) && no file
324324
# Otherwise, check the magic bytes
325325
file!(query(open(filename), filename))
326326
end

src/registry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ add_format(format"RGB", UInt8[0x01,0xda,0x01,0x01,0x00,0x03], ".rgb")
7979
add_loader(format"RGB", :ImageMagick)
8080
add_saver(format"RGB", :ImageMagick)
8181

82-
add_format(format"TIFF", (UInt8[0x4d,0x4d,0x00,0x2a], UInt8[0x4d,0x4d,0x00,0x2b], UInt8[0x49,0x49,0x2a,0x00]), [".tiff", "tif"])
82+
add_format(format"TIFF", (UInt8[0x4d,0x4d,0x00,0x2a], UInt8[0x4d,0x4d,0x00,0x2b], UInt8[0x49,0x49,0x2a,0x00]), [".tiff", ".tif"])
8383
add_loader(format"TIFF", :ImageMagick)
8484
add_saver(format"TIFF", :ImageMagick)
8585
add_format(format"WMF", UInt8[0xd7,0xcd,0xc6,0x9a], ".wmf")

0 commit comments

Comments
 (0)