We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccfc7ad + 2a5e58e commit 88db937Copy full SHA for 88db937
1 file changed
electron/main/services/MusicCacheService.ts
@@ -75,7 +75,7 @@ export class MusicCacheService {
75
*/
76
public async cacheMusic(id: number | string, url: string, quality: string): Promise<string> {
77
const store = useStore();
78
- const limitSizeGB = store.get("cacheLimit") || 10;
+ const limitSizeGB = store.get("cacheLimit") ?? 10;
79
const limitSizeBytes = limitSizeGB * 1024 * 1024 * 1024;
80
81
// 如果设置为 0,则不限制
0 commit comments