Skip to content

Commit 799c92c

Browse files
committed
chore: fix prek formatting issues
1 parent 7bcb5c9 commit 799c92c

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

kms/auth-mock/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ app.get('/', async (c) => {
135135
mockBackend.getChainId(),
136136
mockBackend.getAppImplementation(),
137137
]);
138-
138+
139139
return c.json({
140140
status: 'ok',
141141
kmsContractAddr: process.env.KMS_CONTRACT_ADDR || '0xmockcontract1234567890123456789012345678',
@@ -148,15 +148,15 @@ app.get('/', async (c) => {
148148
});
149149
} catch (error) {
150150
console.error('error in health check:', error);
151-
return c.json({
152-
status: 'error',
153-
message: error instanceof Error ? error.message : String(error)
151+
return c.json({
152+
status: 'error',
153+
message: error instanceof Error ? error.message : String(error)
154154
}, 500);
155155
}
156156
});
157157

158158
// app boot authentication
159-
app.post('/bootAuth/app',
159+
app.post('/bootAuth/app',
160160
zValidator('json', BootInfoSchema),
161161
async (c) => {
162162
try {
@@ -166,7 +166,7 @@ app.post('/bootAuth/app',
166166
instanceId: bootInfo.instanceId,
167167
note: 'always returning success'
168168
});
169-
169+
170170
const result = await mockBackend.checkBoot(bootInfo, false);
171171
return c.json(result);
172172
} catch (error) {
@@ -191,7 +191,7 @@ app.post('/bootAuth/kms',
191191
instanceId: bootInfo.instanceId,
192192
note: 'always returning success'
193193
});
194-
194+
195195
const result = await mockBackend.checkBoot(bootInfo, true);
196196
return c.json(result);
197197
} catch (error) {
@@ -216,4 +216,4 @@ console.log(`starting mock auth server on port ${port} (policy: ${policy})`);
216216
export default {
217217
port,
218218
fetch: app.fetch,
219-
};
219+
};

kms/rpc/proto/kms_rpc.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ message AppKeyResponse {
4444
string tproxy_app_id = 6;
4545
// Reverse proxy app ID from DstackKms contract.
4646
string gateway_app_id = 7;
47-
// OS Image hash
47+
// OS Image hash
4848
bytes os_image_hash = 8;
4949
}
5050

kms/src/www/onboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,4 @@ <h2>Onboard from an Existing KMS Instance</h2>
371371
</script>
372372
</body>
373373

374-
</html>
374+
</html>

0 commit comments

Comments
 (0)