Skip to content

Commit 9829adf

Browse files
committed
fixed very silly error
1 parent 094f728 commit 9829adf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/registry.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ 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-
(seekstart(io); return eof(io)) # if end of file, we have a stl!
180+
result = eof(io) # if end of file, we have a stl!
181+
seekstart(io)
182+
return result
181183
end
182184
add_format(format"STL_ASCII", detect_stlascii, [".stl", ".STL"])
183185
add_format(format"STL_BINARY", detect_stlbinary, [".stl", ".STL"])

0 commit comments

Comments
 (0)