Skip to content

Commit 463114e

Browse files
mgallienbackportbot[bot]
authored andcommitted
fix code style
Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 4375f7d commit 463114e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/libsync/discovery.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,20 +2205,24 @@ void ProcessDirectoryJob::setupDbPinStateActions(SyncJournalFileRecord &record)
22052205
{
22062206
// Only suffix-vfs uses the db for pin states.
22072207
// Other plugins will set localEntry._type according to the file's pin state.
2208-
if (!isVfsWithSuffix())
2208+
if (!isVfsWithSuffix()) {
22092209
return;
2210+
}
22102211

22112212
auto pin = _discoveryData->_statedb->internalPinStates().rawForPath(record._path);
2212-
if (!pin || *pin == PinState::Inherited)
2213+
if (!pin || *pin == PinState::Inherited) {
22132214
pin = _pinState;
2215+
}
22142216

22152217
// OnlineOnly hydrated files want to be dehydrated
2216-
if (record._type == ItemTypeFile && *pin == PinState::OnlineOnly)
2218+
if (record._type == ItemTypeFile && *pin == PinState::OnlineOnly) {
22172219
record._type = ItemTypeVirtualFileDehydration;
2220+
}
22182221

22192222
// AlwaysLocal dehydrated files want to be hydrated
2220-
if (record._type == ItemTypeVirtualFile && *pin == PinState::AlwaysLocal)
2223+
if (record._type == ItemTypeVirtualFile && *pin == PinState::AlwaysLocal) {
22212224
record._type = ItemTypeVirtualFileDownload;
2225+
}
22222226
}
22232227

22242228
}

0 commit comments

Comments
 (0)