From c04b1a0dc79f64ac60d7fb9d6fa380ac2a762cb8 Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Mon, 14 Apr 2025 09:38:46 -0700 Subject: [PATCH] Fix CQS signal. Id] 9250181 -- readability-redundant-string-init in fbcode/pytorch/tokenizers/src (#43) Summary: Pull Request resolved: https://github.com/pytorch-labs/tokenizers/pull/43 Reviewed By: dtolnay Differential Revision: D72781132 --- src/hf_tokenizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hf_tokenizer.cpp b/src/hf_tokenizer.cpp index 4a50673..3d02d85 100644 --- a/src/hf_tokenizer.cpp +++ b/src/hf_tokenizer.cpp @@ -31,7 +31,7 @@ namespace tokenizers { Error HFTokenizer::load(const std::string& path) { // If this is a directory, look for tokenizer.json and tokenizer_config.json std::string model_json = path; - std::string model_config_json = ""; + std::string model_config_json; if (fs::is_directory(path)) { const fs::path root(path); model_json = root / "tokenizer.json";