Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
Fix lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Jan 26, 2018
1 parent 9d7e45b commit 4bbddb8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions src/build_packs/python.js
Expand Up @@ -20,6 +20,7 @@ const fs = require('fs-extra');
const path = require('path');

const BuildPack = require('./build_pack');
const utils = require('../utils');

const SETUP = `
1. Read [Prerequisites][prereq] and [How to run a sample][run] first.
Expand Down Expand Up @@ -107,11 +108,15 @@ module.exports = class PythonBuildPack extends BuildPack {
if (fs.statSync(path.join(cwd, 'requirements.txt')).isFile()) {
return true;
}
} catch (err) {}
} catch (err) {
// Ignore error
}
try {
if (fs.statSync(path.join(cwd, 'setup.py')).isFile()) {
return true;
}
} catch (err) {}
} catch (err) {
// Ignore error
}
}
}
};
5 changes: 4 additions & 1 deletion src/cli/commands/generate.js
Expand Up @@ -219,7 +219,10 @@ exports.handler = opts => {
buildPack.config[field] = products[buildPack.config.product][field];
});
} catch (err) {
utils.logger.error(CLI_CMD, `Unrecognized product: ${buildPack.config.product}`);
utils.logger.error(
CLI_CMD,
`Unrecognized product: ${buildPack.config.product}`
);
return;
}
}
Expand Down

0 comments on commit 4bbddb8

Please sign in to comment.