Skip to content

Commit 1a9454a

Browse files
committed
imatrix : avoid returning from void function save_imatrix
1 parent ba6f6be commit 1a9454a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/imatrix/imatrix.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const {
348348

349349
// TODO: use the new format by default also for .imatrix
350350
if (!str_has_suffix(fname, ".gguf")) {
351-
return this->save_imatrix_legacy(n_chunk);
351+
this->save_imatrix_legacy(n_chunk);
352+
return;
352353
}
353354

354355
if (n_chunk > 0) {

0 commit comments

Comments
 (0)