Skip to content

Commit 6bc6503

Browse files
committed
Code cleaning
1 parent 6f3b396 commit 6bc6503

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

src/components/3d-inspector/View3DLive.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
{width}
2424
{height}
2525
dataPoint={liveDataPoint}
26-
/>
26+
/>

src/components/Gesture.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import ImageSkeleton from './skeletonloading/ImageSkeleton.svelte';
1818
import GestureTilePart from './GestureTilePart.svelte';
1919
import StaticConfiguration from '../StaticConfiguration';
20-
import { Vector3 } from './3d-inspector/View3DUtility';
2120
2221
// Variables for component
2322
export let onNoMicrobitSelect: () => void;

src/components/connection-prompt/ConnectDialogContainer.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,12 @@
4343
// Finished flashing successfully
4444
$connectionDialogState.connectionState = ConnectDialogStates.USB_DONE;
4545
})
46-
.catch((e) => {
47-
// Error during flashing process
48-
console.log("HERE:", e)
49-
46+
.catch(() => {
47+
// Error during flashing process
5048
$connectionDialogState.connectionState = ConnectDialogStates.MANUAL_TUTORIAL;
51-
5249
});
5350
})
5451
.catch((e: Error) => {
55-
console.log("HERE:", e)
5652
// Couldn't find name. Set to manual transfer progress instead
5753
if (e.message.includes('No valid interfaces found')) {
5854
// Edge case, caused by a bad micro:bit firmware

src/components/graphs/RecordingGraph.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
*/
5151
function generatePositionOfInspector(rect: DOMRect, size: number): {x: number, y: number} {
5252
const rectCenterX = (rect.left + rect.right) / 2;
53+
5354
let x = rectCenterX - size / 2;
54-
5555
x = Math.max(0, x)
5656
x = Math.min(x, window.innerWidth - size)
5757

0 commit comments

Comments
 (0)