I have a promise that returns a promise.
For the moment my code is :
async isRepo() {
return await this.gitPromise.checkIsRepo();
}
But I need to return the value of the promise (true or false) to use the function isRepo() at other places.
Even with "then", I didn't success to return the value of the promise and not the promise itself.
I will need it to do for instance :
if (await isRepo()) {
// true : todo
} else {
// false : something else
}