Drop withIndent's call and return result

withIndent's result is not used.
Drop switch use