Skip to content

Commit 1846678

Browse files
authored
Fix Enum.slice deprecation warning in parse_udp (#176)
1 parent 35b19a2 commit 1846678

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tds/protocol.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ defmodule Tds.Protocol do
394394
server =
395395
data
396396
|> String.split(";;")
397-
|> Enum.slice(0..-2//-1)
397+
|> Enum.drop(-1)
398398
|> Enum.reduce([], fn str, acc ->
399399
server =
400400
str

0 commit comments

Comments
 (0)