Minor style fix
Call getCurrentSample() only once