Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Dec 11, 2024
1 parent 04aff97 commit 630e27f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2743,7 +2743,11 @@ export class Client implements LangSmithTracingClientInterface {
);
example.attachments = attachmentsArray.reduce((acc, { key, value }) => {
if (value.reader != null) {
acc[key.startsWith("attachment.") ? key.slice("attachment.".length) : key] = {
acc[
key.startsWith("attachment.")
? key.slice("attachment.".length)
: key
] = {
...value,
reader: value.reader,
};
Expand Down Expand Up @@ -2853,7 +2857,11 @@ export class Client implements LangSmithTracingClientInterface {
example.attachments = attachmentsArray.reduce(
(acc, { key, value }) => {
if (value.reader != null) {
acc[key.startsWith("attachment.") ? key.slice("attachment.".length) : key] = {
acc[
key.startsWith("attachment.")
? key.slice("attachment.".length)
: key
] = {
...value,
reader: value.reader,
};
Expand Down

0 comments on commit 630e27f

Please sign in to comment.