From 92ee4f24c2181298d00b223c938c803062c0ac5f Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Thu, 25 Aug 2016 08:20:59 -0700 Subject: [PATCH] Add break statements to address fallthrough problem in platform sniffer code --- src/platform.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform.ts b/src/platform.ts index b21486a4f6..5aea52ebe4 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -67,6 +67,8 @@ export function getCurrentPlatform() { else if (versionId.startsWith("16")) { return Platform.Ubuntu16; } + + break; case 'centos': return Platform.CentOS; case 'fedora': @@ -90,6 +92,8 @@ export function getCurrentPlatform() { // Elementary OS 0.4 Loki is binary compatible with Ubuntu 16.04 return Platform.Ubuntu16; } + + break; } }