delete unneccessary nil definition

master
Kanezoh 2021-06-10 17:10:48 +09:00
parent 88f973d2af
commit fe15e4a049
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
require "http/client"
class MechanizeCr::File
#property :body, :filename
property :body, :code, uri
def initialize(uri : URI, response : ::HTTP::Client::Response | Nil, body : String , code : Int32 | Nil)
property :body, :code, uri, :response
def initialize(uri : URI, response : ::HTTP::Client::Response, body : String , code : Int32)
@uri = uri
@body = body
@code = code