mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
Remove more debugging
This commit is contained in:
parent
3c866667bc
commit
85048ca048
2
index.ts
2
index.ts
|
@ -59,10 +59,8 @@ function getIpInfo(ip: String): Promise.IThenable<{}> {
|
||||||
|
|
||||||
var cached = cache.get(ip);
|
var cached = cache.get(ip);
|
||||||
if (cached != null) {
|
if (cached != null) {
|
||||||
console.log("serving cached");
|
|
||||||
resolve(cached);
|
resolve(cached);
|
||||||
} else {
|
} else {
|
||||||
console.log("serving fetched");
|
|
||||||
https.get(options, callback);
|
https.get(options, callback);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue