refactor(Util): make class extend null (#6000)

This commit is contained in:
Antonio Román
2021-07-03 14:25:35 +02:00
committed by GitHub
parent e7ad2fe207
commit 2446ff5251
5 changed files with 12 additions and 24 deletions

View File

@@ -9,11 +9,7 @@ let INCREMENT = 0;
/**
* A container for useful snowflake-related methods.
*/
class SnowflakeUtil {
constructor() {
throw new Error(`The ${this.constructor.name} class may not be instantiated.`);
}
class SnowflakeUtil extends null {
/**
* A Twitter snowflake, except the epoch is 2015-01-01T00:00:00.000Z
* ```