hany-consul-backup-restore
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "hany-consul-backup-restore", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Library to backup and restore consul key values", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -23,3 +23,4 @@ const parseUtil = require('./parseUtil') | ||
if (err) { | ||
return callback(err) | ||
callback(err) | ||
return | ||
} | ||
@@ -29,9 +30,12 @@ }) | ||
if (err) { | ||
return callback(err) | ||
callback(err) | ||
return | ||
} | ||
s3FileUtil.backup(keyValues, options.prefix, options.s3BucketName, options.filePath, (err, result) => { | ||
if (err) { | ||
return callback(err) | ||
callback(err) | ||
return | ||
} | ||
return callback(null, result) | ||
callback(null, result); | ||
return; | ||
}) | ||
@@ -53,7 +57,9 @@ }) | ||
if (err) { | ||
return callback(err) | ||
callback(err) | ||
return; | ||
} | ||
if (result) { | ||
var blanksRemoved = result.filter(function (e) { return e }) | ||
return callback(null, blanksRemoved) | ||
callback(null, blanksRemoved) | ||
return | ||
} | ||
@@ -69,7 +75,9 @@ }) | ||
if (err) { | ||
return callback(err) | ||
callback(err); | ||
return; | ||
} | ||
if (result) { | ||
var blanksRemoved = result.filter(function (e) { return e }) | ||
return callback(null, blanksRemoved) | ||
callback(null, blanksRemoved) | ||
return; | ||
} | ||
@@ -76,0 +84,0 @@ }) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41713
452