Skip to content

Commit

Permalink
change return type to void
Browse files Browse the repository at this point in the history
  • Loading branch information
litongjava committed Oct 21, 2023
1 parent 0857e5a commit 6854b1a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public File modelDir() {
/**
* @param modelPath - absolute path, or just the name (eg: "base", "base-en" or "base.en")
*/
public Pointer initContext(String modelPath) throws FileNotFoundException {
public void initContext(String modelPath) throws FileNotFoundException {
if (ctx != null) {
lib.whisper_free(ctx);
}
Expand All @@ -51,7 +51,6 @@ public Pointer initContext(String modelPath) throws FileNotFoundException {
if (ctx == null) {
throw new FileNotFoundException(modelPath);
}
return ctx;
}

/**
Expand Down

0 comments on commit 6854b1a

Please sign in to comment.