20let scale: number;
21const PATCH_SIZE = 32;
22const PADDING = 2;
23let resolver = () => {}; 24const ready = new Promise<void>(r => {
25 resolver = r;
26});
Having empty functions hurts readability, and is considered a code-smell. There's almost always a way to avoid using them. If you must use one, consider adding a comment to inform the reader of its purpose.
getUser('SwaGaLisTiQuE', () => {})
getUser('SwaGaLisTiQuE', () => {
// empty because <reason>
})