Skip to content

Commit 4898721

Browse files
committed
chore: removed redundant endl in ColorLog
1 parent f76ab65 commit 4898721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/legacy/api/ScriptAPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Local<Value> ColorLog(const Arguments& args) {
3434
CHECK_ARGS_COUNT(args, 1);
3535

3636
try {
37-
std::string prefix = "";
37+
std::string prefix;
3838
switch (doHash(args[0].asString().toString())) {
3939
case doHash("dk_blue"):
4040
prefix = "\x1b[34m";
@@ -88,7 +88,7 @@ Local<Value> ColorLog(const Arguments& args) {
8888
std::ostringstream sout;
8989
sout << prefix;
9090
for (int i = 1; i < args.size(); ++i) PrintValue(sout, args[i]);
91-
sout << "\x1b[0m" << std::endl;
91+
sout << "\x1b[0m";
9292
getEngineOwnData()->plugin->getLogger().info(sout.str());
9393
return Boolean::newBoolean(true);
9494
}

0 commit comments

Comments
 (0)