Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 15, 2024
1 parent 532931b commit dc8755f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/TF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,11 @@ std::map<std::string, std::string> TF2::load_task(const std::string& input) {
// Decode values after parse.
// [ <- &open;
// ] <- &close;
const std::string TF2::decode (const std::string& value) const
{
if (value.find ('&') == std::string::npos)
return value;
const std::string TF2::decode(const std::string& value) const {
if (value.find('&') == std::string::npos) return value;

auto modified = str_replace (value, "&open;", "[");
return str_replace (modified, "&close;", "]");
auto modified = str_replace(value, "&open;", "[");
return str_replace(modified, "&close;", "]");
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/TF2.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TF2 {

bool _loaded_tasks;
bool _loaded_lines;
std::vector<std::map<std::string,std::string>> _tasks;
std::vector<std::map<std::string, std::string>> _tasks;
std::vector<std::string> _lines;
File _file;
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/CmdImportV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class CmdImportV2 : public Command {
public:
CmdImportV2();
int execute(std::string&);
int execute(std::string &);

private:
int import(const std::vector<std::map<std::string, std::string>> &task_data);
Expand Down

0 comments on commit dc8755f

Please sign in to comment.