Skip to content

Commit 0dfc3ff

Browse files
fix: whitespace formatting
Signed-off-by: Pranavjeet-Naidu <pranavjeetnaidu@gmail.com>
1 parent b9ee28c commit 0dfc3ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ std::string zim::stripMimeParameters(const std::string& rawMimeType) {
214214
size_t pos = rawMimeType.find(';');
215215

216216
// string is clean if no semicolon found
217-
if (pos == std::string::npos){
217+
if (pos == std::string::npos) {
218218
return rawMimeType;
219219
}
220220

221221
std::string cleanMime = rawMimeType.substr(0, pos);
222222

223223
// removing trailing whitespaces before the semicolon
224224
size_t end = cleanMime.find_last_not_of(" \t");
225-
if (end != std::string::npos){
225+
if (end != std::string::npos) {
226226
cleanMime = cleanMime.substr(0, end+1);
227227
}
228228
else {

src/writer/counterHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void CounterHandler::handle(Dirent* dirent, std::shared_ptr<Item> item)
7777

7878
auto cleanMimetype = zim::stripMimeParameters(mimetype);
7979

80-
if (cleanMimetype.empty()){
80+
if (cleanMimetype.empty()) {
8181
return;
8282
}
8383

0 commit comments

Comments
 (0)