Lint fixes

This commit is contained in:
WardPearce
2026-03-03 19:45:08 +13:00
parent ae2e928fc2
commit 2a8a84aec2
4 changed files with 4 additions and 5 deletions
@@ -170,8 +170,7 @@
function getScrubbingSpeeds(duration: number) {
const baseVelocity = duration * 0.001;
const maxVelocity = duration * 0.1;
let rampTime = duration * 0.5;
rampTime = Math.max(800, 10000);
const rampTime = duration * 0.2;
return { baseVelocity, maxVelocity, rampTime };
}
+1 -1
View File
@@ -7,7 +7,7 @@ import { isVideoID } from './misc';
function extractVideoId(url: string): string | null {
const urlObj = new URL(url, 'http://example.com'); // Using a base URL in case searchValue is just a query parameter
let videoId: string | null = null;
let videoId: string | null;
if (urlObj.hostname === 'youtu.be') {
videoId = urlObj.pathname.replace('/', '');
if (videoId === '') {
+1 -1
View File
@@ -168,7 +168,7 @@ export async function createUser(user: CreateUser): Promise<User> {
masterKeyNonce: user.masterKey.nonce
};
let userCreated = false;
let userCreated: boolean;
try {
await getSequelize().UserTable.create(createdUser);
userCreated = true;
@@ -37,7 +37,7 @@
async function loadMore(event: InfiniteEvent) {
if (typeof displayContent === 'undefined') return;
let completed = false;
let completed: boolean;
let newContent: ChannelContent;
if (displayContent.getContinuation) {
newContent = await displayContent.getContinuation();