remove useless null check

This commit is contained in:
SimonTen 2023-11-06 10:40:24 +01:00 committed by Bill Thornton
parent 3efda93208
commit 294e4c220c

View File

@ -28,7 +28,7 @@ function initPermissionRequest() {
const apiClient = ServerConnections.currentApiClient();
if (apiClient) {
apiClient.getCurrentUser()
.then(user => user && registerOneDocumentClickHandler())
.then(user => registerOneDocumentClickHandler())
.catch(() => {
Events.on(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler);
});