Skip to content

Commit

Permalink
fix codeql error
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz authored Aug 21, 2024
1 parent de2ff1f commit a7792b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/api_cc/src/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,10 @@ void deepmd::load_op_library() {
#endif
std::string plugin_path(env_customized_plugins);
std::vector<std::string> plugin_paths = split(plugin_path, pathvarsep);

Check warning on line 419 in source/api_cc/src/common.cc

View check run for this annotation

Codecov / codecov/patch

source/api_cc/src/common.cc#L418-L419

Added lines #L418 - L419 were not covered by tests
for (const auto& plugin_path : plugin_paths) {
for (const auto& plugin : plugin_paths) {
std::cerr << "Loading customized plugin defined in DP_PLUGIN_PATH: "
<< plugin_path << std::endl;
_load_library_path(plugin_path);
<< plugin << std::endl;
_load_library_path(plugin);

Check warning on line 423 in source/api_cc/src/common.cc

View check run for this annotation

Codecov / codecov/patch

source/api_cc/src/common.cc#L422-L423

Added lines #L422 - L423 were not covered by tests
}
}
}
Expand Down

0 comments on commit a7792b2

Please sign in to comment.