Skip to content

Commit 2d6ed4e

Browse files
committed
change indentation to tabs everywhere
1 parent a2f7c51 commit 2d6ed4e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

json-to-go.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -494,27 +494,27 @@ function jsonToGo(json, typename, flatten = true, example = false, allOmitempty
494494
}
495495

496496
if (typeof module != 'undefined') {
497-
if (!module.parent) {
498-
if (process.argv.length > 2 && process.argv[2] === '-big') {
499-
bufs = []
500-
process.stdin.on('data', function(buf) {
501-
bufs.push(buf)
502-
})
503-
process.stdin.on('end', function() {
504-
const json = Buffer.concat(bufs).toString('utf8')
505-
process.stdout.write(jsonToGo(json).go)
506-
})
507-
} else if (process.argv.length === 3) {
508-
const fs = require('fs');
509-
const json = fs.readFileSync(process.argv[2], 'utf8');
510-
process.stdout.write(jsonToGo(json).go)
511-
} else {
512-
process.stdin.on('data', function(buf) {
513-
const json = buf.toString('utf8')
514-
process.stdout.write(jsonToGo(json).go)
515-
})
516-
}
517-
} else {
518-
module.exports = jsonToGo
519-
}
497+
if (!module.parent) {
498+
if (process.argv.length > 2 && process.argv[2] === '-big') {
499+
bufs = []
500+
process.stdin.on('data', function(buf) {
501+
bufs.push(buf)
502+
})
503+
process.stdin.on('end', function() {
504+
const json = Buffer.concat(bufs).toString('utf8')
505+
process.stdout.write(jsonToGo(json).go)
506+
})
507+
} else if (process.argv.length === 3) {
508+
const fs = require('fs');
509+
const json = fs.readFileSync(process.argv[2], 'utf8');
510+
process.stdout.write(jsonToGo(json).go)
511+
} else {
512+
process.stdin.on('data', function(buf) {
513+
const json = buf.toString('utf8')
514+
process.stdout.write(jsonToGo(json).go)
515+
})
516+
}
517+
} else {
518+
module.exports = jsonToGo
519+
}
520520
}

0 commit comments

Comments
 (0)