Skip to content

Commit a198a3e

Browse files
committed
linting fixups
1 parent fa9b105 commit a198a3e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/pyunrealsdk/debugging.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PYUNREALSDK_CAPI(void, debug_this_thread);
1313
}
1414

1515
void debug_this_thread(void) {
16-
return PYUNREALSDK_MANGLE(debug_this_thread)();
16+
PYUNREALSDK_MANGLE(debug_this_thread)();
1717
}
1818

1919
#ifdef PYUNREALSDK_INTERNAL

src/pyunrealsdk/logging.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ std::pair<std::string, int> get_python_location(PyFrameObject* frame = nullptr)
4747
*/
4848
class Logger {
4949
private:
50-
std::stringstream stream{};
50+
std::stringstream stream;
5151

5252
public:
5353
/// The log level to log at.
@@ -172,8 +172,7 @@ void register_module(py::module_& mod) {
172172
" The number of chars which were written (which is always equal to the length\n"
173173
" of the string).",
174174
"text"_a)
175-
.def(
176-
"flush", [](Logger& self) { self.flush(); }, "Flushes the stream.");
175+
.def("flush", [](Logger& self) { self.flush(); }, "Flushes the stream.");
177176

178177
logging.def("set_console_level", &unrealsdk::logging::set_console_level,
179178
"Sets the log level of the unreal console.\n"

0 commit comments

Comments
 (0)