From b3eef140da853414776c8e03a70629a613a25ed0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 15 Jun 2026 14:05:29 +0200 Subject: workflows/ci: add clang-format job --- um/service/utils/uninstall_service.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'um/service/utils/uninstall_service.cpp') diff --git a/um/service/utils/uninstall_service.cpp b/um/service/utils/uninstall_service.cpp index aa5af85..d7c105c 100644 --- a/um/service/utils/uninstall_service.cpp +++ b/um/service/utils/uninstall_service.cpp @@ -8,20 +8,15 @@ #include #include -int main(int argc, char* argv[]) -{ - if (argc != 2) - { +int main(int argc, char* argv[]) { + if (argc != 2) { std::cout << "Usage: " << argv[0] << " NAME\n"; return 1; } - try - { + try { service::Service::open(service::ServiceManager::open(), argv[1]).uninstall(); - } - catch (const std::exception& e) - { + } catch (const std::exception& e) { std::cerr << e.what() << "\n"; return 1; } -- cgit v1.3