Fix indentation

This commit is contained in:
Jackson Mills
2021-10-21 16:26:49 -07:00
parent 136884839b
commit 30d78812b3
2 changed files with 52 additions and 52 deletions

View File

@@ -3,10 +3,10 @@
if (typeof module !== "undefined") { if (typeof module !== "undefined") {
// gotta use var here because const/let are block-scoped to the if statement. // gotta use var here because const/let are block-scoped to the if statement.
var xrpl = require('xrpl') var xrpl = require('xrpl')
} }
// Connect ------------------------------------------------------------------- // Connect -------------------------------------------------------------------
async function main() { async function main() {
console.log("Connecting to Mainnet...") console.log("Connecting to Mainnet...")
const client = new xrpl.Client('wss://s1.ripple.com') const client = new xrpl.Client('wss://s1.ripple.com')
await client.connect() await client.connect()
@@ -30,7 +30,7 @@ if (typeof module !== "undefined") {
await client.disconnect() await client.disconnect()
// End main() // End main()
} }
main().catch(console.error) main().catch(console.error)

View File

@@ -3,10 +3,10 @@
if (typeof module !== "undefined") { if (typeof module !== "undefined") {
// gotta use var here because const/let are block-scoped to the if statement. // gotta use var here because const/let are block-scoped to the if statement.
var xrpl = require('xrpl') var xrpl = require('xrpl')
} }
// Connect ------------------------------------------------------------------- // Connect -------------------------------------------------------------------
async function main() { async function main() {
console.log("Connecting to Mainnet...") console.log("Connecting to Mainnet...")
const client = new xrpl.Client('wss://s1.ripple.com') const client = new xrpl.Client('wss://s1.ripple.com')
await client.connect() await client.connect()
@@ -28,6 +28,6 @@ if (typeof module !== "undefined") {
await client.disconnect() await client.disconnect()
// End main() // End main()
} }
main().catch(console.error) main().catch(console.error)