Apply suggestions from code review
Apply suggestions from code review

Co-authored-by: Tim Gross <e78f7fff3e6d0b12086e88217430be86de25b0e8@hashicorp.com>
burdandrei/nomad,hashicorp/nomad,hashicorp/nomad,burdandrei/nomad,burdandrei/nomad,burdandrei/nomad,hashicorp/nomad,burdandrei/nomad,dvusboy/nomad,dvusboy/nomad,dvusboy/nomad,dvusboy/nomad,dvusboy/nomad,burdandrei/nomad,dvusboy/nomad,hashicorp/nomad,hashicorp/nomad,burdandrei/nomad,dvusboy/nomad,hashicorp/nomad