Skip to content

Commit a2b5dba

Browse files
committed
Fix warning
1 parent f90281e commit a2b5dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/myxql/connection.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ defmodule MyXQL.Connection do
366366
end
367367

368368
defp error(reason, statement, state) do
369-
exception = error(reason)
370-
%MyXQL.Error{exception | statement: statement, connection_id: state.client.connection_id}
369+
%MyXQL.Error{} = exception = error(reason)
370+
%{exception | statement: statement, connection_id: state.client.connection_id}
371371
end
372372

373373
defp error(err_packet(code: code, message: message)) do

0 commit comments

Comments
 (0)