The recent updates to Premailex.HTMLInlineStyles.process/3 changed the spec, but the spec doesn't match the actual allowed arguments. Specifically, process/1 and process/2 default to nil for the 2nd/3rd arguments, but the spec doesn't allow nil there. This is causing "no local return" dialyzer warnings to bubble up into any app calling this function.
I updated the spec to allow nil for those arguments.
The recent updates to
Premailex.HTMLInlineStyles.process/3
changed the spec, but the spec doesn't match the actual allowed arguments. Specifically,process/1
andprocess/2
default tonil
for the 2nd/3rd arguments, but the spec doesn't allownil
there. This is causing "no local return" dialyzer warnings to bubble up into any app calling this function.I updated the spec to allow
nil
for those arguments.