clean up and fix quality violations since get_course can never return None, we can remove these lines