Closed larshesel closed 3 years ago
If I have Rambo.run("echo") in my code, dialyzer will complain with a no local return error.
Rambo.run("echo")
This seems to be because Rambo.run/1 calls Rambo.run/3 with the second argument set to nil (https://github.com/jayjun/rambo/blob/master/lib/rambo.ex#L66) which violates the args() type of Rambo.run/3 (https://github.com/jayjun/rambo/blob/master/lib/rambo.ex#L14).
Rambo.run/1
Rambo.run/3
nil
args()
Thanks for the helpful investigation! Fixed in 0.3.3.
If I have
Rambo.run("echo")
in my code, dialyzer will complain with a no local return error.This seems to be because
Rambo.run/1
callsRambo.run/3
with the second argument set tonil
(https://github.com/jayjun/rambo/blob/master/lib/rambo.ex#L66) which violates theargs()
type of Rambo.run/3 (https://github.com/jayjun/rambo/blob/master/lib/rambo.ex#L14).