Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Dec 18, 2018
1 parent 51e3225 commit f256ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spec/std/http/server/server_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ end

private def ensure_no_ports_leaking
lsof = `lsof -p #{Process.pid} -i TCP -a 2> /dev/null`
#lsof.should eq ""
# lsof.should eq ""
puts lsof unless lsof.empty?
end

Expand Down Expand Up @@ -300,7 +300,6 @@ module HTTP
server = Server.new { |ctx| }
port = server.bind_tcp(0).port
port.should_not eq(0)

ensure
server.close if server
ensure_no_ports_leaking
Expand Down
2 changes: 1 addition & 1 deletion src/http/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class HTTP::Server

# Adds a `Socket::Server` *socket* to this server.
def bind(socket : Socket::Server) : Nil
bind(socket) {}
bind(socket) { }
end

# Helper method which yields to block, allowing to close a newly created socket if
Expand Down

0 comments on commit f256ff6

Please sign in to comment.