refactor(minErr): improve minification, remove a "magic number" and needless variables