Skip to content

Commit

Permalink
FIx Ameba issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Oct 12, 2023
1 parent 61aaf0d commit c1e8b0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ext/gphoto2.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module GPhoto2
end
end

def to_zip_file(root : String? = nil) : Nil
def to_zip_file(root : String? = nil, &) : Nil
tempfile = to_zip_file(root)
begin
yield tempfile
Expand Down
2 changes: 1 addition & 1 deletion src/ext/kemal.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
protected def restore_headers_on_rescue(response)
protected def restore_headers_on_rescue(response, &)
prev_headers = response.headers.clone
begin
yield response
Expand Down
2 changes: 1 addition & 1 deletion src/gphoto2/web.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module GPhoto2
end

@[AlwaysInline]
def self.camera_by_id(id, exit = false, &block)
def self.camera_by_id(id, exit = false, &)
Debug.log id

wrapper = cameras.find &.camera.id.==(id)
Expand Down

0 comments on commit c1e8b0b

Please sign in to comment.