Skip to content

Commit 6f7b83c

Browse files
author
prayas7102
committed
clang format issues resolved
1 parent 3695abb commit 6f7b83c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/searches/BM25InvertedIndex.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void addMovie(int docId, String name, double imdbRating, int releaseYear,
146146
Map<Integer, Integer> docList = index.get(term);
147147
if (docList == null) {
148148
docList = new HashMap<>();
149-
index.put(term, docList); // Ensure docList is added to the index
149+
index.put(term, docList); // Ensure docList is added to the index
150150
}
151151
// Increment the term frequency in this document
152152
docList.put(docId, docList.getOrDefault(docId, 0) + 1);
@@ -180,7 +180,7 @@ public List<SearchResult> search(String term) {
180180
int termFrequency = entry.getValue();
181181
Movie movie = movies.get(docId);
182182
if (movie == null) {
183-
continue; // Skip this document if movie doesn't exist
183+
continue; // Skip this document if movie doesn't exist
184184
}
185185
double docLength = movie.getWords().length;
186186

0 commit comments

Comments
 (0)