Skip to content

Commit

Permalink
fix(cmdline): add missing reference
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 22, 2023
1 parent db4b6d7 commit a6ca418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cmdline/src/command_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ void command_handler::size(const std::vector<std::string> & args)

ftp::file_size_reply reply = ftp_client_.get_file_size(remote_file);

const std::optional<std::uint64_t> size = reply.get_size();
const std::optional<std::uint64_t> & size = reply.get_size();
if (size)
{
std::cout << size.value() << " bytes."<< std::endl;
Expand Down

0 comments on commit a6ca418

Please sign in to comment.