Skip to content

Commit 40d91bc

Browse files
committed
fix: cleanup
1 parent 4210481 commit 40d91bc

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

source/steel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ if (!skipUpdateCheck) {
168168
const {waitUntilExit} = render(<UpdateProgress />);
169169
await waitUntilExit();
170170
} else {
171-
// Skip update check and run Pastel directly
172-
console.debug('Skipping update check for command:', command);
173-
174171
// Filter out global flags and update process.argv
175172
const originalArgv = process.argv;
176173
process.argv = [

source/utils/update.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ function readUpdateCache(): UpdateCache | null {
113113
}
114114
const cacheData = fs.readFileSync(UPDATE_CACHE_FILE, 'utf8');
115115
return JSON.parse(cacheData);
116-
} catch (error) {
117-
console.debug('Could not read update cache:', error);
116+
} catch {
118117
return null;
119118
}
120119
}
@@ -129,8 +128,8 @@ function writeUpdateCache(cache: UpdateCache): void {
129128
fs.mkdirSync(CONFIG_DIR, {recursive: true});
130129
}
131130
fs.writeFileSync(UPDATE_CACHE_FILE, JSON.stringify(cache, null, 2));
132-
} catch (error) {
133-
console.debug('Could not write update cache:', error);
131+
} catch {
132+
// Do nothing
134133
}
135134
}
136135

0 commit comments

Comments
 (0)