mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
fix codeql recommendations
https://github.com/pybricks/pybricks-code/pull/823/checks?check_run_id=6695406302
This commit is contained in:
+3
-3
@@ -71,7 +71,7 @@ export class ActiveFileHistoryManager {
|
||||
}
|
||||
} catch (err) {
|
||||
// istanbul ignore next: not a critical error
|
||||
console.error(`failed to get ${this.storageKey}:`, err);
|
||||
console.error(`failed to get ${this.storageKey}: ${err}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ export class ActiveFileHistoryManager {
|
||||
sessionStorage.setItem(this.storageKey, JSON.stringify(this.history));
|
||||
} catch (err) {
|
||||
// istanbul ignore next: not a critical failure
|
||||
console.error(`failed to store ${this.storageKey}:`, err);
|
||||
console.error(`failed to store ${this.storageKey}: ${err}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ export class ActiveFileHistoryManager {
|
||||
sessionStorage.setItem(this.storageKey, JSON.stringify(this.history));
|
||||
} catch (err) {
|
||||
// istanbul ignore next: not a critical failure
|
||||
console.error(`failed to store ${this.storageKey}:`, err);
|
||||
console.error(`failed to store ${this.storageKey}: ${err}`);
|
||||
}
|
||||
|
||||
return wasActiveFile ? this.history.at(-1) : undefined;
|
||||
|
||||
Reference in New Issue
Block a user