This and the next line are added for the same condition, so only test the condition once and use a non-modifying `if`:

```ruby
if persist
  hash_sub[:init] << "WScript.Sleep #{delay * 1000}\r\n"
  hash_sub[:init] << "Loop\r\n"
end
```