Skip to content

Conversation

@caolanm
Copy link
Contributor

@caolanm caolanm commented May 16, 2025

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

caolanm added 2 commits May 16, 2025 21:09
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If6cdaad28a3e4a997875dc8c58b3f9686e4992e5
and

cid#512069 Variable copied when it could be moved

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I0fa1413de8b3fc357afe82bd7dc676d808b69f27

bool calledFailed = false;
http::Session::ConnectFailCallback connectFailCallback =
[&](const std::shared_ptr<http::Session>&) { calledFailed = true; };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was lazy.

Copy link
Contributor

@Ashod Ashod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @caolanm. I'm sure you mentioned a good reason for removing _path, but I can't remember it.


// Is it outdated?
if (dstStat.isUpToDate(srcStat))
if (FileUtil::Stat::isUpToDate(srcStat, srcFilename, dstStat, dstFilename))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks cumbersome. I suppose JailUtil being the only place we use isUpToDate() it's acceptable. Although I'm not sure removing _path is such a big win. Perhaps I forgot the reason behind it.

@github-project-automation github-project-automation bot moved this from To Review to To Test in Collabora Online May 19, 2025
@Ashod Ashod merged commit f198703 into master May 19, 2025
14 checks passed
@Ashod Ashod deleted the private/caolan/coverity20250516 branch May 19, 2025 00:23
@github-project-automation github-project-automation bot moved this from To Test to Done in Collabora Online May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants