Since the last statement in a block is the return value, you don't need to explicitly assign the variable. However, this could be refactored a little bit for clarity as follows:

```ruby
sysctl_encrypted = Facter::Util::Resolution.exec("sysctl -n vm.swapencrypt.enable").to_i
!(sysctl_encrypted.zero?)
```

This will reveal more intent, I think. Small nitpick.