Skip to content

Commit

Permalink
Merge pull request #714 from DustinCampbell/fix-fallthrough
Browse files Browse the repository at this point in the history
Add break statements to address fallthrough problem in platform sniffer code
  • Loading branch information
DustinCampbell authored Aug 26, 2016
2 parents 2b9b110 + 92ee4f2 commit 77f753a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export function getCurrentPlatform() {
else if (versionId.startsWith("16")) {
return Platform.Ubuntu16;
}

break;
case 'centos':
return Platform.CentOS;
case 'fedora':
Expand All @@ -90,6 +92,8 @@ export function getCurrentPlatform() {
// Elementary OS 0.4 Loki is binary compatible with Ubuntu 16.04
return Platform.Ubuntu16;
}

break;
}
}

Expand Down

0 comments on commit 77f753a

Please sign in to comment.