Autoformat bug?

This works find when I type it into the AS3 actions editor:

function funct(X:Number):Number {
return 3*(X - 1)
}
trace(funct(1));// 0

But if I ask the editor to autoformat it, I get:

function funct(X:Number):Number {
return 3 * X - 1;
}
trace(funct(1));// 2

In general, the editor seems to remove brackets after a return. Is this a bug, or am I missing something about what can follow a return? This behavior caused a bunch of headaches until I noticed it was happening.