mirror of https://github.com/astral-sh/ruff
del; try in handleshare
This commit is contained in:
parent
21fe750933
commit
4dcde682d2
|
|
@ -20,13 +20,7 @@ export default function Chrome() {
|
|||
if (settings == null || pythonSource == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await persist(settings, pythonSource);
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("Failed to share playground", error);
|
||||
}
|
||||
await persist(settings, pythonSource);
|
||||
}, [pythonSource, settings]);
|
||||
|
||||
if (initPromise.current == null) {
|
||||
|
|
|
|||
|
|
@ -52,10 +52,7 @@ export default function Playground() {
|
|||
const serialized = serializeFiles(files);
|
||||
|
||||
if (serialized != null) {
|
||||
await persist(serialized).catch((error) => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("Failed to share playground", error);
|
||||
});
|
||||
await persist(serialized)
|
||||
}
|
||||
}, [files]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue