Merge pull request #13793 from Bo98/resource-style

resource: style tweak
This commit is contained in:
Bo Anderson 2022-09-01 19:53:53 +01:00 committed by GitHub
commit 39d9f14dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ class Resource
raise TypeError, "version '#{val.inspect}' should be a string"
end
version.null? ? nil : version
version unless version.null?
end
# A resource containing a Go package.