Skip to content

Commit c3ce2fa

Browse files
authored
fix PostPolicy bool operator condition (#137)
1 parent f5132e0 commit c3ce2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/miniocpp/args.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ struct PostPolicy {
570570

571571
~PostPolicy() = default;
572572

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

575575
error::Error AddEqualsCondition(std::string element, std::string value);
576576
error::Error RemoveEqualsCondition(std::string element);

0 commit comments

Comments
 (0)