mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
chore: apply light lints (#2570)
This commit is contained in:
@@ -352,7 +352,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
void handleHexdumpCommand(const std::vector<std::string> &args) {
|
||||
if (args.size() < 1 || args.size() > 3) {
|
||||
if (args.empty() || args.size() > 3) {
|
||||
log::println("usage: imhex --hexdump <file> <offset> <size>");
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
@@ -399,7 +399,7 @@ namespace hex::plugin::builtin {
|
||||
if (std::fgets(input.data(), input.size() - 1, stdin) == nullptr)
|
||||
std::exit(EXIT_FAILURE);
|
||||
|
||||
input = input.c_str();
|
||||
input = input.c_str(); // Stop at first null byte
|
||||
input = wolv::util::trim(input);
|
||||
|
||||
if (input == ConfirmationString) {
|
||||
@@ -536,7 +536,7 @@ namespace hex::plugin::builtin {
|
||||
mcp::Client client;
|
||||
|
||||
auto result = client.run(std::cin, std::cout);
|
||||
std::fprintf(stderr, "MCP Client disconnected!\n");
|
||||
fmt::print(stderr, "MCP Client disconnected!\n");
|
||||
std::exit(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user