style: Remove unnecessary comment and white space

This commit is contained in:
Peifan Li
2025-12-21 23:16:38 -05:00
parent 8e6dd5c72c
commit 765b8de280

View File

@@ -105,7 +105,7 @@ const CloudDriveSettings: React.FC<CloudDriveSettingsProps> = ({ settings, onCha
// Use Public URL if available, otherwise fall back to API URL
// Public URL is what users will actually access, so it's more important to test
let testUrl = settings.openListPublicUrl?.trim() || settings.openListApiUrl.trim();
// If the URL doesn't start with http:// or https://, it's invalid
if (!testUrl.startsWith('http://') && !testUrl.startsWith('https://')) {
throw new Error('Invalid URL format');
@@ -170,7 +170,7 @@ const CloudDriveSettings: React.FC<CloudDriveSettingsProps> = ({ settings, onCha
try {
const API_URL = import.meta.env.VITE_API_URL || '';
const response = await fetch(`${API_URL}/api/cloud/sync`, {
const response = await fetch(`${API_URL}/cloud/sync`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',