Skip to content

Commit 788bc43

Browse files
rgw: Remove unnecessary null check from valid_s3_bucket_name
Signed-off-by: Vedansh Bhartia <[email protected]>
1 parent e45272d commit 788bc43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_rest_s3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ inline int valid_s3_bucket_name(const std::string& name, bool relaxed=false)
882882
continue;
883883

884884
if (c == '.') {
885-
if (!relaxed && s && *s) {
885+
if (!relaxed) {
886886
// name cannot have consecutive periods or dashes
887887
// adjacent to periods
888888
// ensure s is neither the first nor the last character

0 commit comments

Comments
 (0)