Small code improvement, Code cleanup according to moodle codechecker