Skip to content

Commit 77f753a

Browse files
Merge pull request #714 from DustinCampbell/fix-fallthrough
Add break statements to address fallthrough problem in platform sniffer code
2 parents 2b9b110 + 92ee4f2 commit 77f753a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platform.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export function getCurrentPlatform() {
6767
else if (versionId.startsWith("16")) {
6868
return Platform.Ubuntu16;
6969
}
70+
71+
break;
7072
case 'centos':
7173
return Platform.CentOS;
7274
case 'fedora':
@@ -90,6 +92,8 @@ export function getCurrentPlatform() {
9092
// Elementary OS 0.4 Loki is binary compatible with Ubuntu 16.04
9193
return Platform.Ubuntu16;
9294
}
95+
96+
break;
9397
}
9498
}
9599

0 commit comments

Comments
 (0)