Repository navigation
Enforce hash key types at compile time #8893
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
2d5b06c
af171e8
2a37670
7acd11a
6184650
8639817
599b1f9
1ab3ad4
ede59aa
51f66fb
a02b625
f365d32
8b6c2a4
f2f15da
66d581b
4f7680e
4bf7485
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -470,7 +470,7 @@ module Crystal::Playground | |
|
|
||
| agent_ws = PathWebSocketHandler.new "/agent" do |ws, context| | ||
| match_data = context.request.path.not_nil!.match(/\/(\d+)\/(\d+)$/).not_nil! | ||
| session_key = match_data[1]?.try(&.to_i) | ||
| session_key = match_data[1]?.try(&.to_i) || 0 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| tag = match_data[2]?.try(&.to_i) | ||
| @logger.info "#{context.request.path} WebSocket connected (session=#{session_key}, tag=#{tag})" | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.