Skip to content

Commit

Permalink
Cast port to Int32
Browse files Browse the repository at this point in the history
  • Loading branch information
j8r committed Apr 14, 2019
1 parent 79f13c3 commit a8872ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefix/config.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
struct Prefix::Config
getter sources : Hash(String, String) { data["sources"].as_h.transform_values &.as_s }
getter host : String { data["host"].as_s }
getter port : String { data["port"].as_s }
getter port : Int32 { data["port"].as_i }
getter data : CON::Any

def initialize(content : String)
Expand Down

0 comments on commit a8872ab

Please sign in to comment.