Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix lint

Chocobozzz86e857e96961
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts
index 9a013593f5..9b0d012cfa 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.ts
+++ b/client/src/app/+my-library/my-videos/my-videos.component.ts
@@ -22,14 +22,7 @@ import { VideoPlaylistService } from '@app/shared/shared-video-playlist/video-pl
import { ChannelToggleComponent } from '@app/shared/standalone-channels/channel-toggle.component'
import { NgbDropdownModule, NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
import { arrayify, pick } from '@peertube/peertube-core-utils'
-import {
- UserRight,
- VideoChannel,
- VideoExistInPlaylist,
- VideoPrivacy,
- VideoPrivacyType,
- VideosExistInPlaylists
-} from '@peertube/peertube-models'
+import { VideoChannel, VideoExistInPlaylist, VideoPrivacy, VideoPrivacyType, VideosExistInPlaylists } from '@peertube/peertube-models'
import { logger } from '@root-helpers/logger'
import debug from 'debug'
import uniqBy from 'lodash-es/uniqBy'
diff --git a/server/core/lib/object-storage/object-storage-helpers.ts b/server/core/lib/object-storage/object-storage-helpers.ts
index 950b3b88af..c15dbf786b 100644
--- a/server/core/lib/object-storage/object-storage-helpers.ts
+++ b/server/core/lib/object-storage/object-storage-helpers.ts
@@ -431,5 +431,5 @@ function parseS3Error (err: any) {
}
}
- return err
+ return err as Error
}
diff --git a/server/core/lib/runners/runner.ts b/server/core/lib/runners/runner.ts
index 7e242ff655..b978d806de 100644
--- a/server/core/lib/runners/runner.ts
+++ b/server/core/lib/runners/runner.ts
@@ -23,7 +23,7 @@ export function updateLastRunnerContact (req: express.Request, runner: MRunner)
logger.debug('Updating last runner contact for %s', runner.name, lTags(runner.name))
- return runInReadCommittedTransaction(async transaction => {
+ runInReadCommittedTransaction(async transaction => {
return runner.save({ transaction })
}).catch(err => logger.error('Cannot update last runner contact for %s', runner.name, { err, ...lTags(runner.name) }))
.finally(() => updatingRunner.delete(runner.id))