mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Fix Linting and Enable ES6 Syntax
Fix a small linting issue and add the es6 tag to handle the return of a Promise as it is not defined in the ECMA spec. Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
65b3741a93
commit
2907329c20
2 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
env: {
|
env: {
|
||||||
node: true,
|
node: true,
|
||||||
mocha: true
|
mocha: true,
|
||||||
|
es6: true
|
||||||
},
|
},
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 8,
|
ecmaVersion: 8,
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ async function main() {
|
||||||
} catch (deleteError) {
|
} catch (deleteError) {
|
||||||
console.log(`${RED}<-- Failed: DeleteAsset - ${deleteError}${RESET}`);
|
console.log(`${RED}<-- Failed: DeleteAsset - ${deleteError}${RESET}`);
|
||||||
if (deleteError.toString().includes('ENDORSEMENT_POLICY_FAILURE')) {
|
if (deleteError.toString().includes('ENDORSEMENT_POLICY_FAILURE')) {
|
||||||
console.log(`${RED}Be sure that chaincode was deployed with the endorsement policy "OR('Org1MSP.peer','Org2MSP.peer')"${RESET}`)
|
console.log(`${RED}Be sure that chaincode was deployed with the endorsement policy "OR('Org1MSP.peer','Org2MSP.peer')"${RESET}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue