Skip to content

Commit 094f728

Browse files
committed
small cosmetic improvement
1 parent 6d3400e commit 094f728

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/registry.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,7 @@ function detect_stlbinary(io)
177177
skip(io, number_of_triangle_blocks*size_triangleblock-sizeof(Uint16))
178178
attrib_byte_count = read(io, Uint16) # read last attrib_byte
179179
attrib_byte_count != zero(Uint16) && (seekstart(io); return false) # should be zero as not used
180-
eof(io) && (seekstart(io); return true)
181-
182-
seekstart(io)
183-
false
180+
(seekstart(io); return eof(io)) # if end of file, we have a stl!
184181
end
185182
add_format(format"STL_ASCII", detect_stlascii, [".stl", ".STL"])
186183
add_format(format"STL_BINARY", detect_stlbinary, [".stl", ".STL"])

0 commit comments

Comments
 (0)