Skip to content

Commit

Permalink
Revert "Update javascript to pick up 1.10 examples (#13)" (#14)
Browse files Browse the repository at this point in the history
This reverts commit b006a86.
  • Loading branch information
pleia2 authored Nov 20, 2017
1 parent b006a86 commit 90d3d3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,8 @@ function fillExamples() {
var baseUrl = "https://raw.githubusercontent.com/dcos/examples/master/" + packageName + "/";
// Example version
var exampleVersion = null;
// Check if 1.10 example exists
if (fs.existsSync(dcosExamplesFolder + "/" + packageName + "/1.10/README.md")) {
exampleVersion = "1.10";
// Check if 1.9 example exists
} else if (fs.existsSync(dcosExamplesFolder + "/" + packageName + "/1.9/README.md")) {
if (fs.existsSync(dcosExamplesFolder + "/" + packageName + "/1.9/README.md")) {
exampleVersion = "1.9";
} else if (fs.existsSync(dcosExamplesFolder + "/" + packageName + "/1.8/README.md")) {
exampleVersion = "1.8";
Expand Down

0 comments on commit 90d3d3e

Please sign in to comment.