From dd861404e2cb193da0729077395bad6a0f8285e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez=20Baquero?= Date: Thu, 20 Dec 2018 15:03:15 -0500 Subject: [PATCH] Leave default case without brackets --- lib/client/udp-tracker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client/udp-tracker.js b/lib/client/udp-tracker.js index ffbbcc7..56e1b8a 100644 --- a/lib/client/udp-tracker.js +++ b/lib/client/udp-tracker.js @@ -199,10 +199,9 @@ class UDPTracker extends Tracker { break } - default: { + default: onError(new Error('tracker sent invalid action')) break - } } }