mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +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
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
|
|
@ -11,7 +12,7 @@ module.exports = {
|
|||
ecmaVersion: 8,
|
||||
sourceType: 'script'
|
||||
},
|
||||
extends: "eslint:recommended",
|
||||
extends: 'eslint:recommended',
|
||||
rules: {
|
||||
indent: ['error', 'tab'],
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ async function main() {
|
|||
console.log('*** Result: committed');
|
||||
} catch (initError) {
|
||||
// this is error is OK if we are rerunning this app without restarting
|
||||
console.log(`******** initLedger failed :: ${initError}`)
|
||||
console.log(`******** initLedger failed :: ${initError}`);
|
||||
}
|
||||
} else {
|
||||
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');
|
||||
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)');
|
||||
await contract.submitTransaction('TransferAsset', 'asset2', 'Tom');
|
||||
|
|
|
|||
Loading…
Reference in a new issue