Skip to content

Commit ce69809

Browse files
fix:
1 parent 5342543 commit ce69809

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,7 @@ void PIDinspect(const std::vector<DWORD>& pids, const std::vector<std::string>&
21082108

21092109

21102110
if (virtualTerminalEnabled) {
2111-
if (!(process == "")) {
2111+
if (!process.empty()) {
21122112
std::cout << "\033[34mTarget:\033[0m " << procName << "\033[0m" << std::endl;
21132113
std::cout << "\033[34mProcess:\033[0m " << process << "\033[90m (pid " << std::to_string(pid) << ")\033[0m" << std::endl;
21142114
} else
@@ -2119,7 +2119,7 @@ void PIDinspect(const std::vector<DWORD>& pids, const std::vector<std::string>&
21192119
std::cout << "\033[34mProcess:\033[0m " << procName << "\033[90m (pid " << std::to_string(pid) << ")\033[0m" << std::endl;
21202120
}
21212121
} else {
2122-
if (!process == "") {
2122+
if (!process.empty()) {
21232123
std::cout << "Target: " << procName << std::endl;
21242124
std::cout << "Process: " << process << " (pid " << std::to_string(pid) << ")" << std::endl;
21252125
} else {
@@ -2131,6 +2131,7 @@ void PIDinspect(const std::vector<DWORD>& pids, const std::vector<std::string>&
21312131
}
21322132

21332133
}
2134+
}
21342135

21352136

21362137

0 commit comments

Comments
 (0)