Browse Source

elixir/cowboy: fix all unused variable warnings

Utkarsh Kukreti 9 năm trước cách đây
mục cha
commit
c3094e0fb9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      frameworks/Elixir/cowboy/lib/hello.ex

+ 2 - 2
frameworks/Elixir/cowboy/lib/hello.ex

@@ -30,7 +30,7 @@ defmodule JsonHandler do
     { :ok, reply, state }
   end
 
-  def terminate(reason, request, state) do
+  def terminate(_reason, _request, _state) do
     :ok
   end
 end
@@ -48,7 +48,7 @@ defmodule PlaintextHandler do
     { :ok, reply, state }
   end
 
-  def terminate(reason, request, state) do
+  def terminate(_reason, _request, _state) do
     :ok
   end
 end