From: Chocobozzz Date: Mon, 15 Jan 2018 09:03:13 +0000 (+0100) Subject: Fix lint X-Git-Tag: v0.0.1-alpha~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=633868bc2c638ab15c31513bc0da7de92944bffc;p=oweals%2Fpeertube.git Fix lint --- diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts index ac3559c58..e8d77b15b 100644 --- a/server/helpers/requests.ts +++ b/server/helpers/requests.ts @@ -1,13 +1,12 @@ import * as Promise from 'bluebird' import { createWriteStream } from 'fs' -import { RequestResponse } from 'request' import * as request from 'request' import { ACTIVITY_PUB } from '../initializers' import Bluebird = require('bluebird') function doRequest ( requestOptions: request.CoreOptions & request.UriOptions & { activityPub?: boolean } -): Bluebird<{ response: RequestResponse, body: any }> { +): Bluebird<{ response: request.RequestResponse, body: any }> { if (requestOptions.activityPub === true) { if (!Array.isArray(requestOptions.headers)) requestOptions.headers = {} requestOptions.headers['accept'] = ACTIVITY_PUB.ACCEPT_HEADER