Refactored `check_resource` to `resource` in `print_latest_version`
Refactored `check_resource` to `resource` in `print_latest_version`

Co-authored-by: Nanda H Krishna <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@nandahkrishna.com>
nandub/brew,Homebrew/brew,Homebrew/brew,nandub/brew,Homebrew/brew,MikeMcQuaid/brew,MikeMcQuaid/brew,nandub/brew,Homebrew/brew,nandub/brew,MikeMcQuaid/brew,MikeMcQuaid/brew