Minor cleanup

This commit is contained in:
Travis Ralston 2021-12-06 20:56:33 -07:00
parent bea3850c94
commit dd7b6a54f0

View File

@ -2,12 +2,7 @@ import { Context, DELETE, GET, Path, PathParam, POST, Security, ServiceContext }
import { ApiError } from "../ApiError";
import { LogService } from "matrix-bot-sdk";
import { ROLE_USER } from "../security/MatrixSecurity";
import {
HookshotGithubAuthUrls,
HookshotGithubOrg,
HookshotGithubRepo,
HookshotGithubRoomConfig
} from "../../bridges/models/hookshot";
import { HookshotGithubAuthUrls, HookshotGithubRepo, HookshotGithubRoomConfig } from "../../bridges/models/hookshot";
import { HookshotGithubBridge } from "../../bridges/HookshotGithubBridge";
interface BridgeRoomRequest {
@ -32,8 +27,7 @@ export class DimensionHookshotGithubService {
try {
const hookshot = new HookshotGithubBridge(userId);
const authUrls = await hookshot.getAuthUrls();
return authUrls;
return await hookshot.getAuthUrls();
} catch (e) {
LogService.error("DimensionHookshotGithubService", e);
throw new ApiError(400, "Error getting auth info");