[sample] Coding style tweaks for consistency