Skip to content

Commit 1315bd8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b4e922d commit 1315bd8

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/utils/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const std::map<git_status_t, status_messages>& get_status_msg_map()
5151
{GIT_STATUS_WT_UNREADABLE, {"", ""}},
5252
{GIT_STATUS_IGNORED, {"!! ", ""}},
5353
{GIT_STATUS_CONFLICTED, {"AA ", "\tboth added: "}},
54-
};
54+
};
5555
return status_msg_map;
5656
}
5757

src/utils/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct status_messages
3838

3939
status_messages get_status_msg(git_status_t);
4040

41-
using stream_colour_fn = std::ostream& (*) (std::ostream&);
41+
using stream_colour_fn = std::ostream& (*)(std::ostream&);
4242

4343
std::string read_file(const std::string& path);
4444

src/wasm/stream.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ EM_JS(
106106
}
107107
catch (err)
108108
{
109-
// Store error for later retrieval
110-
// clang-format off
109+
// Store error for later retrieval
110+
// clang-format off
111111
Module["git2cpp_js_error"] = { name: err.name ?? "", message : err.message ?? "" };
112112
// clang-format on
113113
(err.name == "TimeoutError" ? console.warn : console.error)(err);
@@ -193,8 +193,8 @@ EM_JS(
193193

194194
if (first_read)
195195
{
196-
// Caller must delete the returned status_text and response_headers.
197-
// clang-format off
196+
// Caller must delete the returned status_text and response_headers.
197+
// clang-format off
198198
setValue(status, xhr.status, 'i32*');
199199
setValue(status_text, stringToNewUTF8(xhr.statusText ?? ""), 'i8**');
200200
setValue(total_bytes, byte_length, 'i64*');
@@ -212,8 +212,8 @@ EM_JS(
212212
}
213213
catch (err)
214214
{
215-
// Store error for later retrieval
216-
// clang-format off
215+
// Store error for later retrieval
216+
// clang-format off
217217
Module["git2cpp_js_error"] = { name: err.name ?? "", message : err.message ?? "" };
218218
// clang-format on
219219
(err.name == "TimeoutError" ? console.warn : console.error)(err);

0 commit comments

Comments
 (0)