```
def delete_node(node)
next_node = node.next
if next_node != nil
node.val = next_node.val
node.next = next_node.next
end
end
def delete_node(node)
next_node = node.next
unless next_node
node.val = next_node.val
node.next = next_node.next
end
end
```

The second answer will not ac?