Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-zh committed Jul 13, 2023
1 parent 0d8a713 commit be7311d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kafka-avro-lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { HeaderNames, MessageHeaders } from './types';

export const getMessageHeaderValue = (headers: MessageHeaders[], header: HeaderNames | string): string | null => {
const selected = headers.find(h => header in h );
const selected = headers.find((h) => header in h);

if (undefined === selected) {
return null;
return null;
}

return Buffer.from(selected[header]).toString()
return Buffer.from(selected[header]).toString();
};

0 comments on commit be7311d

Please sign in to comment.