Remove duplicate closing of code block