Skip to content

Commit

Permalink
chore: removed redundant endl in ColorLog
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 28, 2025
1 parent f76ab65 commit 4898721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/legacy/api/ScriptAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Local<Value> ColorLog(const Arguments& args) {
CHECK_ARGS_COUNT(args, 1);

try {
std::string prefix = "";
std::string prefix;
switch (doHash(args[0].asString().toString())) {
case doHash("dk_blue"):
prefix = "\x1b[34m";
Expand Down Expand Up @@ -88,7 +88,7 @@ Local<Value> ColorLog(const Arguments& args) {
std::ostringstream sout;
sout << prefix;
for (int i = 1; i < args.size(); ++i) PrintValue(sout, args[i]);
sout << "\x1b[0m" << std::endl;
sout << "\x1b[0m";
getEngineOwnData()->plugin->getLogger().info(sout.str());
return Boolean::newBoolean(true);
}
Expand Down

0 comments on commit 4898721

Please sign in to comment.