Skip to content

Commit

Permalink
Use readable variable names.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <hello@camilasan.com>
  • Loading branch information
camilasan committed Jun 5, 2024
1 parent f26b482 commit 19ae649
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ int main(int argc, char **argv)
selectiveSyncFixup(&db, selectiveSyncList);
}

SyncOptions opt;
opt.fillFromEnvironmentVariables();
opt.verifyChunkSizes();
SyncEngine engine(account, options.source_dir, opt, folder, &db);
SyncOptions syncOptions;

Check warning on line 532 in src/cmd/cmd.cpp

View workflow job for this annotation

GitHub Actions / build

src/cmd/cmd.cpp:532:17 [cppcoreguidelines-init-variables]

variable 'syncOptions' is not initialized
syncOptions.fillFromEnvironmentVariables();
syncOptions.verifyChunkSizes();
SyncEngine engine(account, options.source_dir, syncOptions, folder, &db);

Check warning on line 535 in src/cmd/cmd.cpp

View workflow job for this annotation

GitHub Actions / build

src/cmd/cmd.cpp:535:16 [cppcoreguidelines-init-variables]

variable 'engine' is not initialized
engine.setIgnoreHiddenFiles(options.ignoreHiddenFiles);
engine.setNetworkLimits(options.uplimit, options.downlimit);
QObject::connect(&engine, &SyncEngine::finished,
Expand Down

0 comments on commit 19ae649

Please sign in to comment.