Skip to content

Commit

Permalink
Use nil instead of an empty string for Reactor#script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Jul 2, 2021
1 parent 5bc22fc commit bde5229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reactor.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Mint
@sockets = [] of HTTP::WebSocket

getter ast : Ast = Ast.new
getter script = ""
getter script : String?

def self.start(host : String, port : Int32, auto_format : Bool, live_reload : Bool)
new host, port, auto_format, live_reload
Expand Down Expand Up @@ -109,7 +109,7 @@ module Mint
rescue error : Error
@error = error.to_html
@artifacts = nil
@script = ""
@script = nil
end

def live_reload
Expand Down

0 comments on commit bde5229

Please sign in to comment.