Skip to content

Commit fd22f1e

Browse files
committed
Tau - refactor to removing lint warning
1 parent 0a331c0 commit fd22f1e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

app/server/beam/tau/src/tau_server/tau_server_link.erl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,8 @@ loop(State) ->
109109

110110
{link_reset} ->
111111
logger:debug("Resetting link", []),
112-
case sp_link:is_enabled() of
113-
true ->
114-
logger:debug("Link is currently enabled, now disabling then re-enabling it...", []),
115-
sp_link:enable(false),
116-
sp_link:enable(true);
117-
_ -> ok
118-
end,
112+
sp_link:enable(false),
113+
sp_link:enable(sp_link:is_enabled()),
119114
?MODULE:loop(State);
120115

121116
{link_rpc, UUID, get_start_stop_sync_enabled} ->

0 commit comments

Comments
 (0)