Skip to content

Commit

Permalink
[ci] fixed whitespace cpplint issue in auto-config (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed Oct 2, 2019
1 parent 67099ff commit dc65e0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/parameter_generator.py
Expand Up @@ -293,7 +293,7 @@ def gen_parameter_code(config_hpp, config_out_cpp):
tmp = set_one_var_from_string(name, param_type, checks)
str_to_write += tmp
# tails
str_to_write += "}\n\n"
str_to_write = str_to_write.strip() + "\n}\n\n"
str_to_write += "std::string Config::SaveMembersToString() const {\n"
str_to_write += " std::stringstream str_buf;\n"
for x in infos:
Expand Down
1 change: 0 additions & 1 deletion src/io/config_auto.cpp
Expand Up @@ -579,7 +579,6 @@ void Config::GetMembersFromString(const std::unordered_map<std::string, std::str
GetInt(params, "gpu_device_id", &gpu_device_id);

GetBool(params, "gpu_use_dp", &gpu_use_dp);

}

std::string Config::SaveMembersToString() const {
Expand Down

0 comments on commit dc65e0a

Please sign in to comment.