Simplify
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
kolaente 2019-04-02 10:37:05 +02:00
parent e5bc2d07b4
commit f75b047a54
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -34,9 +34,7 @@ class Label {
'id': id,
'title': title,
'description': description,
'hex_color': color?.value == null
? null
: color.value.toRadixString(16).padLeft(8, '0').substring(2),
'hex_color': color?.value?.toRadixString(16)?.padLeft(8, '0')?.substring(2),
'created_by': createdBy?.toJSON(),
'updated': updated?.millisecondsSinceEpoch,
'created': created?.millisecondsSinceEpoch,