Skip to content

Commit fa747ad

Browse files
committed
chore: cleanup
1 parent d53d953 commit fa747ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export function createServer ({repo, connections = []}) {
171171
res.end('Download started')
172172
}
173173

174-
175174
async function ignoreVideoHandler(req, res, repo, connections = []) {
176175
const body = await getBody(req)
177176
let { id } = JSON.parse(body)
@@ -278,6 +277,7 @@ export function createServer ({repo, connections = []}) {
278277
res.writeHead(200, { 'Content-Type': 'application/json' })
279278
res.end(JSON.stringify(videoQuality))
280279
}
280+
281281
async function setVideoQualityHandler(req, res) {
282282
const body = await getBody(req)
283283
const videoQuality = JSON.parse(body)
@@ -304,6 +304,7 @@ export function createServer ({repo, connections = []}) {
304304
res.writeHead(200, { 'Content-Type': 'text/plain' })
305305
res.end(diskSpaceUsed.toFixed(3) + 'GB')
306306
}
307+
307308
function reclaimDiskSpaceHandler(req, res) {
308309
const videos = repo.getVideos()
309310
const ignoredVideos = videos.filter(video => video.downloaded)

0 commit comments

Comments
 (0)