A note on properties of the restriction operator on Sobolev spaces