Closed doberkofler closed 1 year ago
I just noticed in my code that the following code snipped:
function test(para: string, options?: string): string { let url = `url?para=${para}`; if (typeof options === 'string' && options.length > 0) { url += `&${options}`; } return url; }
will be wrongly converted by p42 to:
function test(para: string, options?: string): string { return typeof options === 'string' && options.length > 0 ? `&${options}` : `url?para=${para}`; }
Hi @doberkofler - thanks for the bug report! This issue was fixed in v1.163.2. Please try that version and re-open if it still occurs.
v1.163.2
Duplicate of #56
I just noticed in my code that the following code snipped:
will be wrongly converted by p42 to: