Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default username type in nuk_user_session:new/1 #20

Open
unix1 opened this issue Feb 20, 2018 · 0 comments
Open

Fix default username type in nuk_user_session:new/1 #20

unix1 opened this issue Feb 20, 2018 · 0 comments
Labels

Comments

@unix1
Copy link
Owner

unix1 commented Feb 20, 2018

Per dialyzer:

nuk_user_session.erl:30: Invalid type specification for function nuk_user_session:new/0. The success typing is () -> #{'user':=#{}, 'username':='anonymous'}

Indeed, the opaque session() type defines username => string(), and we are setting an atom.

@unix1 unix1 added the bug label Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant