puppetlabs / puppet-strings

The next generation Puppet documentation extraction and presentation tool.
http://puppetlabs.github.io/puppet-strings/
Apache License 2.0
90 stars 84 forks source link

Do not fail in case return tag has no type specified #268

Closed tiandrey closed 3 years ago

tiandrey commented 3 years ago

Currently puppet-strings fails if function documentation tag return has no type specified with "NoMethodError: undefined method `first' for nil:NilClass", so you either have no return tag or have to duplicate function return type in return tag. This PR allows you to omit specifying return type.