aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/src/index.js')
-rw-r--r--lang/js/src/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/js/src/index.js b/lang/js/src/index.js
index ad4b05b0..cf6e2d03 100644
--- a/lang/js/src/index.js
+++ b/lang/js/src/index.js
@@ -32,21 +32,21 @@ import { Connection } from './Connection';
*
* @async
*/
-function init(){
- return new Promise(function(resolve, reject){
+function init (){
+ return new Promise(function (resolve, reject){
const connection = new Connection;
connection.checkConnection(false).then(
- function(result){
+ function (result){
if (result === true) {
resolve(new GpgME());
} else {
reject(gpgme_error('CONN_NO_CONNECT'));
}
- }, function(){ //unspecific connection error. Should not happen
+ }, function (){ // unspecific connection error. Should not happen
reject(gpgme_error('CONN_NO_CONNECT'));
});
});
}
-const exportvalue = {init:init};
+const exportvalue = { init:init };
export default exportvalue; \ No newline at end of file