remove rant lmfao

This commit is contained in:
May 2023-11-06 00:45:26 +00:00 committed by GitHub
parent 3a5327aeb4
commit dddfd9dbcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -367,12 +367,6 @@ export default class Files {
file_updates.sizeInBytes = atSIB.reduce((a, b) => a + b, 0) file_updates.sizeInBytes = atSIB.reduce((a, b) => a + b, 0)
if (!file.chunkSize) file_updates.chunkSize = atSIB[0] if (!file.chunkSize) file_updates.chunkSize = atSIB[0]
if (Object.keys(file_updates).length) { if (Object.keys(file_updates).length) {
// if file_updates not empty
// i gotta do these weird workarounds, ts is weird sometimes
// originally i was gonna do key is keyof FilePointer but for some reason
// it ended up making typeof file[key] never??? so
// its 10pm and chinese people suck at being quiet so i just wanna get this over with
// chinese is the worst language in terms of volume lmao
let valid_fp_keys = ["sizeInBytes", "chunkSize"] let valid_fp_keys = ["sizeInBytes", "chunkSize"]
let isValidFilePointerKey = ( let isValidFilePointerKey = (
key: string key: string