- if self[:refresh] == true && self[:ensure] == :absent
- raise(_('ensure => absent and refresh => true are mutually exclusive'))
- end
- if self[:content] && self[:source]
- raise(_('The properties content and source are mutually exclusive.'))
- end
- if self[:id].length < 40
- warning(_('The id should be a full fingerprint (40 characters), see README.'))
- end
+ raise(_('ensure => absent and refresh => true are mutually exclusive')) if self[:refresh] == true && self[:ensure] == :absent
+ raise(_('The properties content and source are mutually exclusive.')) if self[:content] && self[:source]
+
+ warning(_('The id should be a full fingerprint (40 characters), see README.')) if self[:id].length < 40