warning: assigned but unused variable - current

This patch fixes a ruby warning "assigned but unused variable".