Skip to content

Commit 9720919

Browse files
committed
Remove unnecessary case statement
1 parent 6795101 commit 9720919

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/exqlite/sqlite3.ex

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ defmodule Exqlite.Sqlite3 do
6262
Executes an sql script. Multiple stanzas can be passed at once.
6363
"""
6464
@spec execute(db(), String.t()) :: :ok | {:error, reason()}
65-
def execute(conn, sql) do
66-
case Sqlite3NIF.execute(conn, sql) do
67-
:ok -> :ok
68-
{:error, reason} -> {:error, reason}
69-
end
70-
end
65+
def execute(conn, sql), do: Sqlite3NIF.execute(conn, sql)
7166

7267
@doc """
7368
Get the number of changes recently.

0 commit comments

Comments
 (0)