remove unnecessary #dup
Merge pull request #8694 from goshakkk/undup

Remove unnecessary #dup