resource: style tweak

This commit is contained in:
Bo Anderson 2022-09-01 19:30:38 +01:00
parent 08c597d563
commit cc97ae2152
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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.