Skip to content

Commit 12fdc1f

Browse files
Copilothotlong
andcommitted
fix: prefix unused context param with underscore in handleI18n to fix TS6133 build error
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent aba0323 commit 12fdc1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/runtime/src/http-dispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class HttpDispatcher {
550550
* GET /labels/:object/:locale → getFieldLabels (both from path)
551551
* GET /labels/:object?locale=xx → getFieldLabels (locale from query)
552552
*/
553-
async handleI18n(path: string, method: string, query: any, context: HttpProtocolContext): Promise<HttpDispatcherResult> {
553+
async handleI18n(path: string, method: string, query: any, _context: HttpProtocolContext): Promise<HttpDispatcherResult> {
554554
const i18nService = await this.getService(CoreServiceName.enum.i18n);
555555
if (!i18nService) return { handled: true, response: this.error('i18n service not available', 501) };
556556

0 commit comments

Comments
 (0)