mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Fix Linting Issues
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
2907329c20
commit
41bb1d0b5c
2 changed files with 33 additions and 32 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
env: {
|
env: {
|
||||||
|
|
@ -11,7 +12,7 @@ module.exports = {
|
||||||
ecmaVersion: 8,
|
ecmaVersion: 8,
|
||||||
sourceType: 'script'
|
sourceType: 'script'
|
||||||
},
|
},
|
||||||
extends: "eslint:recommended",
|
extends: 'eslint:recommended',
|
||||||
rules: {
|
rules: {
|
||||||
indent: ['error', 'tab'],
|
indent: ['error', 'tab'],
|
||||||
'linebreak-style': ['error', 'unix'],
|
'linebreak-style': ['error', 'unix'],
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ async function main() {
|
||||||
console.log('*** Result: committed');
|
console.log('*** Result: committed');
|
||||||
} catch (initError) {
|
} catch (initError) {
|
||||||
// this is error is OK if we are rerunning this app without restarting
|
// this is error is OK if we are rerunning this app without restarting
|
||||||
console.log(`******** initLedger failed :: ${initError}`)
|
console.log(`******** initLedger failed :: ${initError}`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('*** not executing "InitLedger');
|
console.log('*** not executing "InitLedger');
|
||||||
|
|
@ -179,7 +179,7 @@ async function main() {
|
||||||
|
|
||||||
console.log('\n--> Evaluate Transaction: AssetExists, function returns "false" if an asset with ID(asset7) does not exist');
|
console.log('\n--> Evaluate Transaction: AssetExists, function returns "false" if an asset with ID(asset7) does not exist');
|
||||||
result = await contract.evaluateTransaction('AssetExists', 'asset7');
|
result = await contract.evaluateTransaction('AssetExists', 'asset7');
|
||||||
console.log(`*** Result: ${prettyJSONString(result.toString())}`)
|
console.log(`*** Result: ${prettyJSONString(result.toString())}`);
|
||||||
|
|
||||||
console.log('\n--> Submit Transaction: TransferAsset, transfer asset(asset2) to new owner(Tom)');
|
console.log('\n--> Submit Transaction: TransferAsset, transfer asset(asset2) to new owner(Tom)');
|
||||||
await contract.submitTransaction('TransferAsset', 'asset2', 'Tom');
|
await contract.submitTransaction('TransferAsset', 'asset2', 'Tom');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue