Skip to content

Commit

Permalink
style: format code with Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 849a8da according to the output
from Prettier.

Details: None
  • Loading branch information
deepsource-autofix[bot] committed Oct 2, 2023
1 parent 849a8da commit 668a681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function picoSearch<T>(
objectsArray: T[],
searchTerm: string,
keys: Keys,
config: { threshold: number }
config: { threshold: number },
): T[] {
if (!searchTerm || typeof searchTerm !== "string") {
return objectsArray;
Expand Down Expand Up @@ -69,7 +69,7 @@ export function picoSearch<T>(

const similarityForObject = weightedAverage(
similarityScores,
weightsInOrder
weightsInOrder,
);

if (similarityForObject >= threshold) {
Expand All @@ -94,7 +94,7 @@ function splitWordsAndRank(valueToSearch: string, splitSearchTerm: string[]) {

const splitScores = splitSearchTerm.map((searchWord) => {
const similarityValues = splitSearchCandidate.map((word) =>
getScoreForWord(word, searchWord)
getScoreForWord(word, searchWord),
);

const maxSimilarity = Math.max(...similarityValues);
Expand Down

0 comments on commit 668a681

Please sign in to comment.