General programming question about return

Hi all, I had a basic programming question: Is it better to data type a function that doesn’t return anything to :void, or should you just use return even if you aren’t returning anything?


function test(theObj:Object):void {
dataObj = theObj;
}

or


function test(theObj:Object) {
dataObj = theObj;

return
}

Is there a difference? What are the advantages/disadvantages for each method?

Thanks!