Commit 3fd857e00bec1d18b5c11cac91c13a3bc3ff3190

Authored by Adhidarma Hadiwinoto
1 parent dd043a5783
Exists in master

hapus promise tak disengaja

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -46,10 +46,10 @@ function MatrixUtil(options) {
46 46 }
47 47  
48 48 config = options.config;
49   - if (!this.config) new Promise(function(resolve, reject) {
  49 + if (!this.config) {
50 50 console.trace("Config not set");
51 51 process.exit(1);
52   - });
  52 + };
53 53 }
54 54  
55 55 MatrixUtil.prototype.updateBuddyState = function(jid, state, statusText, resource) {