benvanik/WebGL-Inspector

get rid of blocks

Opened this issue · 0 comments

BufferView.js has all these blocks. JavaScript is function scoped, not block scoped (until the let keyword lands), so the variable declarations leak into these blocks. Therefore, there is no point in having them as they introduce unnecessary indentation.