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

make cookies.delete("not_existing") not fail #1132

Merged
merged 1 commit into from
May 3, 2020

Conversation

skojin
Copy link
Contributor

@skojin skojin commented May 2, 2020

make cookies.delete("not_existing") have same behaviour as session.delete("not_existing"), when delete key that not exists, return nil instead of fail

Description

Please include any relevant code samples or screen shots that may help to overview of this PR.
Link to specific lines of code, or examples if you need to.

Checklist

  • - An issue already exists detailing the issue/or feature request that this PR fixes
  • - All specs are formatted with crystal tool format spec src
  • - Inline documentation has been added and/or updated
  • - Lucky builds on docker with ./script/setup
  • - All builds and specs pass on docker with ./script/test

make ```cookies.delete("not_existing")``` have same behaviour as ```session.delete("not_existing")```, when delete key that not exists, return nil instead of fail
Copy link
Member

@jwoertink jwoertink left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jwoertink jwoertink merged commit 563d259 into luckyframework:master May 3, 2020
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