1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00

🔧 Use positional arguments in the Condition class

This commit is contained in:
Stefano Pigozzi 2021-05-07 03:48:48 +02:00
parent c167e9c889
commit f24799f473
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01

View file

@ -26,7 +26,7 @@ export default class Condition {
* @param content - The content of the Condition.
* @param id - The id of the Condition on the backend, or null if the Condition hasn't been committed yet.
*/
constructor({type, content, id = null}) {
constructor(type, content, id = null) {
if(isString(type)) {
this.type = typeEnums[type.toUpperCase()]
}