Skip to content

Commit

Permalink
fix PostPolicy bool operator condition (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijoseph authored Apr 16, 2024
1 parent f5132e0 commit c3ce2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/miniocpp/args.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ struct PostPolicy {

~PostPolicy() = default;

explicit operator bool() const { return !bucket.empty() && !expiration_; }
explicit operator bool() const { return !bucket.empty() && expiration_; }

error::Error AddEqualsCondition(std::string element, std::string value);
error::Error RemoveEqualsCondition(std::string element);
Expand Down

0 comments on commit c3ce2fa

Please sign in to comment.