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

#291 change throw error to return null #292

Merged
merged 3 commits into from
Mar 11, 2017
Merged

#291 change throw error to return null #292

merged 3 commits into from
Mar 11, 2017

Conversation

lijiarui
Copy link
Member

@lijiarui lijiarui commented Mar 2, 2017

#291
if Contact&Room cannot find, function fnd() return null

Copy link
Member

@huan huan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc should also be modified in sync.

@lijiarui
Copy link
Member Author

@zixia added jsDoc as you required

@huan
Copy link
Member

huan commented Mar 11, 2017

Thanks!

@huan huan merged commit 92800c2 into wechaty:master Mar 11, 2017
@lijiarui
Copy link
Member Author

#291

@lijiarui
Copy link
Member Author

After merged this one, the following code doesn't work

example/gist-bot/on-friend.ts(34,9): error TS2531: Object is possibly 'null'.
example/gist-bot/on-friend.ts(35,9): error TS2531: Object is possibly 'null'.
example/gist-bot/on-message.ts(40,11): error TS2531: Object is possibly 'null'.
example/gist-bot/on-message.ts(46,7): error TS2531: Object is possibly 'null'.

@huan
Copy link
Member

huan commented Mar 11, 2017

Then fix it please.

@lijiarui lijiarui mentioned this pull request Mar 11, 2017
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants