Minor formatting and refactoring

This commit is contained in:
barsdeveloper
2022-04-14 21:25:36 +02:00
parent f29119809f
commit 9b0f344dcc
12 changed files with 170 additions and 199 deletions

View File

@@ -12,11 +12,6 @@ export default class IntegerEntity extends IEntity {
* @param {Object | Number | String} options
*/
constructor(options = 0) {
if (options.constructor == Number || options.constructor == String) {
options = {
value: options,
}
}
super(options)
this.value = Math.round(this.value)
}