Skip to content

Commit

Permalink
feat(replies)!: rename get_list() to get_replies()
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 23, 2023
1 parent cc61407 commit c4cef8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ftp/replies.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class replies

[[nodiscard]] std::vector<reply>::const_iterator end() const;

[[nodiscard]] const std::vector<reply> & get_list() const;
[[nodiscard]] const std::vector<reply> & get_replies() const;

private:
bool is_positive_;
Expand Down
2 changes: 1 addition & 1 deletion src/replies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ std::vector<reply>::const_iterator replies::end() const
return replies_.cend();
}

const std::vector<reply> & replies::get_list() const
const std::vector<reply> & replies::get_replies() const
{
return replies_;
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void check_reply(const std::optional<ftp::reply> & reply, std::string_view expec

void check_last_reply(const ftp::replies & replies, std::string_view expected)
{
const std::vector<ftp::reply> & reply_list = replies.get_list();
const std::vector<ftp::reply> & reply_list = replies.get_replies();

if (reply_list.empty())
{
Expand Down

0 comments on commit c4cef8a

Please sign in to comment.