style: fix prettier formatting in ControlInt.eval_expression

This commit is contained in:
Luis Mendoza 2026-02-19 13:49:57 +00:00
parent fa5cc11c92
commit 67183e456e

View file

@ -15,7 +15,9 @@ frappe.ui.form.ControlInt = class ControlInt extends frappe.ui.form.ControlData
return this.parse(value);
}
eval_expression(value, number_format) {
return typeof value === "string" ? frappe.utils.eval_expression(value, number_format) : value;
return typeof value === "string"
? frappe.utils.eval_expression(value, number_format)
: value;
}
parse(value) {
return cint(this.eval_expression(value), null);