remove commented code. when currentFile is null, do nothing.