]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
minor : small code cleanups (#302)
authorAndy Maloney <redacted>
Thu, 22 Dec 2022 15:06:19 +0000 (10:06 -0500)
committerGitHub <redacted>
Thu, 22 Dec 2022 15:06:19 +0000 (17:06 +0200)
commitfa463313ad84d419980354192914330a2a2e8e00
treeebc88b75207a67149f60d6aac062d710568fe746
parent501a6b455c9dee55f7325889341061a1f465b386
minor : small code cleanups (#302)

* Small code cleanups

- fix indentation
- remove extra semicolons
- remove extra break after returns in case statements
- remove unnecessary call to .data() on string
- use empty() instead of checking size()
- no need to check for nullptr before free
- remove unnecessary initialization of string to ""

* minor : switch case always break

Co-authored-by: Georgi Gerganov <redacted>
ggml.c
whisper.cpp