Skip to content

Commit c3f5433

Browse files
committed
Fix linter
1 parent 4f5ee79 commit c3f5433

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

actions/gls-action/scripts/generateTypes.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const state = {
1515

1616
async function run() {
1717
await loadAllDefinitions({
18-
onError: handler => {
18+
onError: () => {
1919
},
20-
connect: options => Promise.resolve([]),
21-
dispatchEvent: (event, payload) => Promise.resolve(),
20+
connect: () => Promise.resolve([]),
21+
dispatchEvent: () => Promise.resolve(),
2222
getProjectActionConfigurations: () => [],
2323
config: {
2424
authToken: "",
@@ -49,6 +49,10 @@ async function run() {
4949
return Promise.resolve()
5050
},
5151
registerFlowTypes: (...flowTypes) => {
52+
state.flowTypes = [
53+
...state.flowTypes,
54+
...flowTypes
55+
]
5256
return Promise.resolve()
5357
}
5458

actions/gls-action/src/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,5 @@ function connectToSdk() {
3131
console.error("Error connecting SDK:");
3232
})
3333

34-
sdk.onError((error) => {
35-
console.error("SDK Error occurred:", error.message);
36-
console.log("Attempting to reconnect in 5s...");
37-
setTimeout(() => {
38-
connectToSdk();
39-
}, 5000)
40-
})
34+
sdk.onError()
4135
}

0 commit comments

Comments
 (0)