Lint fixes
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
@@ -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 === '') {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user