Skip to content

Commit f07993f

Browse files
committed
Apply clang suggestions.
1 parent ce652b7 commit f07993f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int main(int argc, char ** argv) {
166166
// tokenize the prompt
167167
std::vector<llama_token> embd_inp;
168168

169-
if (params.prompt.size() > 0 || session_tokens.size() == 0) {
169+
if (!params.prompt.empty() || session_tokens.empty()) {
170170
// Add a space in front of the first character to match OG llama tokenizer behavior
171171
params.prompt.insert(0, 1, ' ');
172172

0 commit comments

Comments
 (0)