mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
Fix linter
This commit is contained in:
@@ -4,21 +4,21 @@ function transformKey(key) {
|
||||
return String(key).toLowerCase();
|
||||
}
|
||||
|
||||
function waitSynchronous(promise) {
|
||||
if (typeof promise !== 'object' || promise === null) {
|
||||
return promise;
|
||||
}
|
||||
console.log('waitSynchronous', promise);
|
||||
while (true) {
|
||||
var state = promise.getState();
|
||||
if (state === 'resolved') {
|
||||
return promise.get();
|
||||
}
|
||||
if (state === 'rejected') {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
// function waitSynchronous(promise) {
|
||||
// if (typeof promise !== 'object' || promise === null) {
|
||||
// return promise;
|
||||
// }
|
||||
// console.log('waitSynchronous', promise);
|
||||
// while (true) {
|
||||
// var state = promise.getState();
|
||||
// if (state === 'resolved') {
|
||||
// return promise.get();
|
||||
// }
|
||||
// if (state === 'rejected') {
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
class SharedRepository {
|
||||
remove(key) {
|
||||
|
||||
Reference in New Issue
Block a user