refactor: small type improvements (#759)

This commit is contained in:
Carlos Valente
2024-02-03 23:17:36 +01:00
committed by GitHub
parent 1890fc49d7
commit 212e5f9e68
23 changed files with 143 additions and 91 deletions
+3 -3
View File
@@ -19,13 +19,13 @@ export function getAppDataPath(): string {
switch (process.platform) {
case 'darwin': {
return path.join(process.env.HOME, 'Library', 'Application Support', 'Ontime');
return path.join(process.env.HOME!, 'Library', 'Application Support', 'Ontime');
}
case 'win32': {
return path.join(process.env.APPDATA, 'Ontime');
return path.join(process.env.APPDATA!, 'Ontime');
}
case 'linux': {
return path.join(process.env.HOME, '.Ontime');
return path.join(process.env.HOME!, '.Ontime');
}
default: {
throw new Error('Could not resolve public folder for platform');