Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 7b8fd83

Browse files
authored
fix: attributeIsDivisibleByAnInteger bad check if value IsNull and IsUnknown (#58)
1 parent cc90119 commit 7b8fd83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

int64validator/attribute_is_divisible_by_an_integer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (validator attributeIsDivisibleByAnInteger) ValidateInt64(
3232
res *validator.Int64Response,
3333
) {
3434
// If attribute configuration is not null or unknown, there is nothing else to validate
35-
if req.ConfigValue.IsNull() && req.ConfigValue.IsUnknown() {
35+
if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() {
3636
return
3737
}
3838

0 commit comments

Comments
 (0)