manastech / crystal_slack

Parse Slack slash commands or send incoming web hooks from Crystal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue in User::Profile with Crystal 0.36

jwoertink opened this issue · comments

def initialize(@real_name, @email = nil)

I'm getting this error:

In lib/slack/src/slack/api/user.cr:35:32

 35 | def initialize(@real_name, @email = nil)
                                 ^
Error: instance variable @email of Slack::API::User::Profile was inferred to be Nil, but Nil alone provides no information