Skip to content

Commit

Permalink
cleanup: Format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Dec 15, 2024
1 parent c6a8d76 commit a901c4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions fission/src/aps/APS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,6 @@ class APS {
email: json.email,
}

if (json.sub) {
World.AnalyticsSystem?.SetUserId(json.sub as string)
}

this.userInfo = info
} catch (e) {
console.error(e)
Expand Down
10 changes: 4 additions & 6 deletions fission/src/systems/simulation/wpilib_brain/WPILibBrain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@ export function setSimBrain(brain: WPILibBrain | undefined) {
if (simBrain) worker.getValue().postMessage({ command: "disable" })
simBrain = brain
if (simBrain)
worker
.getValue()
.postMessage({
command: "enable",
reconnect: PreferencesSystem.getGlobalPreference<boolean>("SimAutoReconnect"),
})
worker.getValue().postMessage({
command: "enable",
reconnect: PreferencesSystem.getGlobalPreference<boolean>("SimAutoReconnect"),
})
}

export function hasSimBrain() {
Expand Down
6 changes: 4 additions & 2 deletions fission/src/ui/panels/simulation/WiringPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ function generateGraph(
console.warn("Orphaned handle found")
return
}
((v.isSource ? node.data.output : node.data.input) as unknown[]).push(v)
const list = (v.isSource ? node.data.output : node.data.input) as unknown[]
list.push(v)
})

Object.entries(simConfig.edges).forEach(([k, v]) => {
Expand All @@ -147,7 +148,8 @@ function SimIOComponent({ setConfigState, simConfig }: ConfigComponentProps) {
const simIn: HandleInfo[] = []
Object.entries(simConfig.handles).forEach(([_k, v]) => {
if (v.nodeId == NODE_ID_SIM_OUT || v.nodeId == NODE_ID_SIM_IN) {
(v.isSource ? simOut : simIn).push(v)
const list = v.isSource ? simOut : simIn
list.push(v)
}
})

Expand Down

0 comments on commit a901c4f

Please sign in to comment.