Remove magic number in invalid version check

This commit is contained in:
Stubenhocker1399
2019-09-10 00:55:56 +02:00
parent 4671aa53f8
commit af739fe3b5
+1 -1
View File
@@ -559,7 +559,7 @@ const readNumber = readBits(NUMBERS_BITS);
export function readPony(read: ReadBits): Precompressed {
const version = read(VERSION_BITS);
if (version > 5) {
if (version > VERSION) {
throw new Error('Invalid version');
}