Skip to content

Commit 0da51fd

Browse files
committed
style: format strict-mode blocks with prettier
1 parent 2f9b7be commit 0da51fd

5 files changed

Lines changed: 42 additions & 20 deletions

File tree

src/elevenlabs-audio.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ export async function handleElevenLabsAudio(
150150
res,
151151
503,
152152
JSON.stringify({
153-
error: { message: "Strict mode: no fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
153+
error: {
154+
message: "Strict mode: no fixture matched",
155+
type: "invalid_request_error",
156+
code: "no_fixture_match",
157+
},
154158
}),
155159
);
156160
return;
@@ -194,7 +198,11 @@ export async function handleElevenLabsAudio(
194198
res,
195199
404,
196200
JSON.stringify({
197-
error: { message: "No fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
201+
error: {
202+
message: "No fixture matched",
203+
type: "invalid_request_error",
204+
code: "no_fixture_match",
205+
},
198206
}),
199207
);
200208
return;

src/gemini-interactions.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,7 @@ export async function handleGeminiInteractions(
720720
writeErrorResponse(
721721
res,
722722
strictStatus,
723-
JSON.stringify(
724-
buildInteractionsErrorResponse(
725-
strictMessage,
726-
"UNAVAILABLE",
727-
),
728-
),
723+
JSON.stringify(buildInteractionsErrorResponse(strictMessage, "UNAVAILABLE")),
729724
);
730725
return;
731726
}
@@ -770,12 +765,7 @@ export async function handleGeminiInteractions(
770765
writeErrorResponse(
771766
res,
772767
404,
773-
JSON.stringify(
774-
buildInteractionsErrorResponse(
775-
"No fixture matched",
776-
"NOT_FOUND",
777-
),
778-
),
768+
JSON.stringify(buildInteractionsErrorResponse("No fixture matched", "NOT_FOUND")),
779769
);
780770
return;
781771
}

src/images.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ export async function handleImages(
158158
res,
159159
503,
160160
JSON.stringify({
161-
error: { message: "Strict mode: no fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
161+
error: {
162+
message: "Strict mode: no fixture matched",
163+
type: "invalid_request_error",
164+
code: "no_fixture_match",
165+
},
162166
}),
163167
);
164168
return;
@@ -202,7 +206,11 @@ export async function handleImages(
202206
res,
203207
404,
204208
JSON.stringify({
205-
error: { message: "No fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
209+
error: {
210+
message: "No fixture matched",
211+
type: "invalid_request_error",
212+
code: "no_fixture_match",
213+
},
206214
}),
207215
);
208216
return;

src/speech.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ export async function handleSpeech(
137137
res,
138138
503,
139139
JSON.stringify({
140-
error: { message: "Strict mode: no fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
140+
error: {
141+
message: "Strict mode: no fixture matched",
142+
type: "invalid_request_error",
143+
code: "no_fixture_match",
144+
},
141145
}),
142146
);
143147
return;
@@ -181,7 +185,11 @@ export async function handleSpeech(
181185
res,
182186
404,
183187
JSON.stringify({
184-
error: { message: "No fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
188+
error: {
189+
message: "No fixture matched",
190+
type: "invalid_request_error",
191+
code: "no_fixture_match",
192+
},
185193
}),
186194
);
187195
return;

src/video.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ export async function handleVideoCreate(
216216
res,
217217
503,
218218
JSON.stringify({
219-
error: { message: "Strict mode: no fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
219+
error: {
220+
message: "Strict mode: no fixture matched",
221+
type: "invalid_request_error",
222+
code: "no_fixture_match",
223+
},
220224
}),
221225
);
222226
return;
@@ -260,7 +264,11 @@ export async function handleVideoCreate(
260264
res,
261265
404,
262266
JSON.stringify({
263-
error: { message: "No fixture matched", type: "invalid_request_error", code: "no_fixture_match" },
267+
error: {
268+
message: "No fixture matched",
269+
type: "invalid_request_error",
270+
code: "no_fixture_match",
271+
},
264272
}),
265273
);
266274
return;

0 commit comments

Comments
 (0)