https://github.com/LinusU/base32-decode/blob/fa61c01bc0bbd963a1abcf86cc519f09d70b09e0/index.js#L49-L50 Switch the places of the two lines of code. Subtract `8` from the `bits` first, so that you don’t have to subtract it again.
base32-decode/index.js
Lines 49 to 50 in fa61c01
Switch the places of the two lines of code. Subtract
8from thebitsfirst, so that you don’t have to subtract it again.