Skip to content

Commit

Permalink
fix: address linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
1egoman committed Oct 23, 2024
1 parent 35728fd commit 0a70c52
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/api/server/channels/app.mts
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ async function previewStop(
result.process.kill('SIGTERM');
}

async function dependenciesInstall(
payload: DepsInstallPayloadType,
context: AppContextType,
wss: WebSocketServer,
) {
async function dependenciesInstall(payload: DepsInstallPayloadType, context: AppContextType) {
const app = await loadApp(context.params.appId);

if (!app) {
Expand Down Expand Up @@ -235,9 +231,7 @@ export function register(wss: WebSocketServer) {
previewStart(payload, context, wss),
)
.on('preview:stop', PreviewStopPayloadSchema, previewStop)
.on('deps:install', DepsInstallPayloadSchema, (payload, context) => {
dependenciesInstall(payload, context, wss);
})
.on('deps:install', DepsInstallPayloadSchema, dependenciesInstall)
.on('deps:clear', DepsInstallPayloadSchema, clearNodeModules)
.on('deps:status', DepsStatusPayloadSchema, dependenciesStatus)
.on('file:updated', FileUpdatedPayloadSchema, onFileUpdated)
Expand Down

0 comments on commit 0a70c52

Please sign in to comment.