mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-09-10 08:39:39 +00:00
cleanup
This commit is contained in:
@@ -23,15 +23,12 @@ export default (
|
|||||||
if (versionHigh > 255 || versionHigh < 0) {
|
if (versionHigh > 255 || versionHigh < 0) {
|
||||||
throw new Error('version high must be >= 0 and <= 255');
|
throw new Error('version high must be >= 0 and <= 255');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (versionLow > 255 || versionLow < 0) {
|
if (versionLow > 255 || versionLow < 0) {
|
||||||
throw new Error('version low must be >= 0 and <= 255');
|
throw new Error('version low must be >= 0 and <= 255');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frameId > 255 || frameId < 0) {
|
if (frameId > 255 || frameId < 0) {
|
||||||
throw new Error('frame id must be >= 0 and <= 255');
|
throw new Error('frame id must be >= 0 and <= 255');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (framePacketCount > 255 || framePacketCount < 0) {
|
if (framePacketCount > 255 || framePacketCount < 0) {
|
||||||
throw new Error('frame packet count must be >= 0 and <= 255');
|
throw new Error('frame packet count must be >= 0 and <= 255');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user