diff options
| author | Maximilian Krambach <[email protected]> | 2018-08-20 13:12:01 +0000 | 
|---|---|---|
| committer | Maximilian Krambach <[email protected]> | 2018-08-20 13:12:01 +0000 | 
| commit | dd32daad0bb21e3d5567326d0b2e548ff8510431 (patch) | |
| tree | bbefa811b727f1246fee17a26c9f1c4440609003 /lang/js/src/index.js | |
| parent | js: revert changes to class read/write restriction (diff) | |
| download | gpgme-dd32daad0bb21e3d5567326d0b2e548ff8510431.tar.gz gpgme-dd32daad0bb21e3d5567326d0b2e548ff8510431.zip | |
js: add and apply eslint rules
--
* mainly spacing, see .eslintrc.json for details
Diffstat (limited to '')
| -rw-r--r-- | lang/js/src/index.js | 10 | 
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 | 
