From fe15e4a0492c555a523f2ecb7c2e95af396a7c68 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Thu, 10 Jun 2021 17:10:48 +0900 Subject: [PATCH] delete unneccessary nil definition --- src/mechanize/file.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mechanize/file.cr b/src/mechanize/file.cr index 1e6b22a..d072768 100644 --- a/src/mechanize/file.cr +++ b/src/mechanize/file.cr @@ -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