Skip to content

Commit 7316a5f

Browse files
committed
style: formating codes
Signed-off-by: Yuming He <ComixHe1895@outlook.com>
1 parent cd04b28 commit 7316a5f

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/linyaps_box/command/exec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ namespace linyaps_box::command {
1010

1111
[[nodiscard]] auto exec(exec_options options, const global_options &global) noexcept -> int;
1212

13-
} // namespace linyaps_box::command
13+
} // namespace linyaps_box::command

src/linyaps_box/command/kill.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ auto linyaps_box::command::kill(const kill_options &options, const global_option
2222
}
2323

2424
throw std::runtime_error("container not found");
25-
}
25+
}

src/linyaps_box/command/kill.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ namespace linyaps_box::command {
1010

1111
[[nodiscard]] auto kill(const kill_options &options, const global_options &global) -> int;
1212

13-
} // namespace linyaps_box::command
13+
} // namespace linyaps_box::command

src/linyaps_box/command/list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ auto linyaps_box::command::list(const list_options &options, const global_option
3131
printer->print_statuses(statuses);
3232

3333
return 0;
34-
}
34+
}

src/linyaps_box/command/run.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ auto linyaps_box::command::run(const struct run_options &options, const global_o
3232
}
3333

3434
return container.run(std::move(run_options));
35-
}
35+
}

src/linyaps_box/container.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,8 +1811,8 @@ try {
18111811
}
18121812

18131813
linyaps_box::utils::close_range(3u + static_cast<unsigned>(args.preserve_fds),
1814-
std::numeric_limits<unsigned>::max(),
1815-
CLOSE_RANGE_CLOEXEC);
1814+
std::numeric_limits<unsigned>::max(),
1815+
CLOSE_RANGE_CLOEXEC);
18161816

18171817
auto &container = *args.container;
18181818
const auto &oci_config = container.get_config();

src/linyaps_box/status_directory_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace {
1616

1717
auto is_valid_id_char(char c) noexcept -> bool
1818
{
19-
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')
20-
|| c == '_' || c == '+' || c == '-' || c == '.';
19+
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'
20+
|| c == '+' || c == '-' || c == '.';
2121
}
2222

2323
} // namespace

0 commit comments

Comments
 (0)