Skip to content

Commit

Permalink
lint a random file (#3946)
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot authored Nov 13, 2024
1 parent c91323f commit 7227f3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nginx_stage/lib/nginx_stage/socket_file.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'pathname'

module NginxStage
Expand Down Expand Up @@ -27,9 +29,8 @@ def socket
# Delete the socket from the file system
def delete
@socket.delete
rescue
$stderr.puts "Unable to delete socket file at #{socket}"
rescue StandardError
warn "Unable to delete socket file at #{socket}"
end

end
end

0 comments on commit 7227f3c

Please sign in to comment.