Commit 8080f87c authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Check if type is undefined instead of null

parent 77ab20c9
......@@ -68,7 +68,7 @@ class KafkaGeoname {
*/
getProducer(name = 'default') {
return __awaiter(this, void 0, void 0, function* () {
if (this.producer[name] === null) {
if (typeof this.producer[name] === 'undefined') {
return this.createProducer(name);
}
return this.producer[name];
......@@ -80,7 +80,7 @@ class KafkaGeoname {
*/
getConsumerStream(name = 'default') {
return __awaiter(this, void 0, void 0, function* () {
if (this.consumerStream[name] === null) {
if (typeof this.consumerStream[name] === 'undefined') {
return this.createConsumerStream(name);
}
return this.consumerStream[name];
......@@ -243,4 +243,4 @@ class KafkaGeoname {
}
}
exports.default = KafkaGeoname;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2Fma2EtZ2VvbmFtZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9rYWZrYS1nZW9uYW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSx3Q0FBd0M7QUFXeEM7SUE2QkU7O09BRUc7SUFFSDs7Ozs7T0FLRztJQUNILFlBQVksSUFBWSxFQUFFLElBQW1CO1FBdEM3Qzs7O1dBR0c7UUFDSyxjQUFTLEdBQUcsSUFBSSxDQUFDO1FBRXpCOzs7V0FHRztRQUNLLGFBQVEsR0FBRyxFQUFFLENBQUM7UUFFdEI7OztXQUdHO1FBQ0ssbUJBQWMsR0FBRyxFQUFFLENBQUM7UUF1QjFCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0lBQ25CLENBQUM7SUFFRDs7OztPQUlHO0lBQ1UsSUFBSTs7WUFDZixJQUFJO2dCQUNGLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxTQUFTLENBQUM7b0JBQzdCLFdBQVc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UFDLEtBQUssQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7aUJBQ2xEO2dCQUNELE1BQU0sS0FBSyxDQUFDLHFCQUFxQixDQUFDLENBQUM7WUFDckMsQ0FBQyxDQUFDLENBQUM7WUFFSDs7ZUFFRztZQUNILElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxhQUFhLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRTtnQkFDM0QsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQyxJQUFJLENBQUMscUNBQXFDLENBQUMsQ0FBQztnQkFDbEUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO1lBQ2xELENBQUMsQ0FBQyxDQUFDO1lBRUgsT0FBTyxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ25DLENBQUM7S0FBQTtDQUNGO0FBclFELCtCQXFRQyJ9
\ No newline at end of file
......@@ -80,7 +80,7 @@ export default class KafkaGeoname implements InterfaceKafkaGeoname {
* @returns {Promise<any>}
*/
public async getProducer(name: string = 'default') {
if (this.producer[name] === null) {
if (typeof this.producer[name] === 'undefined') {
return this.createProducer(name);
}
return this.producer[name];
......@@ -91,7 +91,7 @@ export default class KafkaGeoname implements InterfaceKafkaGeoname {
* @returns {Promise<any>}
*/
public async getConsumerStream(name: string = 'default') {
if (this.consumerStream[name] === null) {
if (typeof this.consumerStream[name] === 'undefined') {
return this.createConsumerStream(name);
}
return this.consumerStream[name];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment