Fix 'return with no value' warning