Skip to content

Commit 7d31d05

Browse files
committed
remove unused var in ruby server
1 parent fa0bf6b commit 7d31d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
server = WEBrick::HTTPServer.new :Port => 3000, :DocumentRoot => root
1818

1919
server.mount_proc '/comments.json' do |req, res|
20-
comments = react_version = JSON.parse(File.read('./_comments.json'))
21-
20+
comments = JSON.parse(File.read('./_comments.json'))
21+
2222
if req.request_method == 'POST'
2323
# Assume it's well formed
2424
comments << req.query

0 commit comments

Comments
 (0)