remove one line in the code snippet.

I doubt that line will cause the published flag works wrong.