Skip to content

Commit 98b4a81

Browse files
committed
fixed codestyle
1 parent 139f94e commit 98b4a81

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

lib/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @return {Boolean}
99
*/
10-
function check(type, json) {
10+
function check (type, json) {
1111
var returnVal = false;
1212

1313
if (json === undefined) {

lib/createSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var check = require('./check');
1111
* @param {String} filename
1212
* @param {String} [content]
1313
*/
14-
function createSync(pathString, filename, content) {
14+
function createSync (pathString, filename, content) {
1515
var combinePath = path.join(pathString, filename);
1616

1717
content = typeof content === 'undefined' ? '{}' : content;

lib/readToObj.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ var fs = require('fs');
99
*
1010
* @return {Objects} strToObj
1111
*/
12-
function readToObj(path, callback) {
12+
function readToObj (path, callback) {
1313
// search for file. Fail fast if there is no json File
1414
if (!fs.existsSync(path)) return callback(null, false);
1515
if (!fs.statSync(path).isFile()) return callback(null, false);
1616

17-
18-
var fileString = fs.readFile(path, 'utf8', function(err, data) {
17+
var fileString = fs.readFile(path, 'utf8', function (err, data) {
1918
if (err) return callback(null, err);
2019

2120
var strToObj = JSON.parse(data);

lib/readToObjSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var fs = require('fs');
99
*
1010
* @return {Objects} strToObj
1111
*/
12-
function readToObjSync(path) {
12+
function readToObjSync (path) {
1313
// search for file. Fail fast if there is no json File
1414
if (!fs.existsSync(path)) return false;
1515
if (!fs.statSync(path).isFile()) return false;

0 commit comments

Comments
 (0)