Skip to content

Commit

Permalink
update value can empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aiceflower committed Oct 16, 2023
1 parent ddb0a47 commit 480f50e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ public Message saveKeyValue(HttpServletRequest req, @RequestBody Map<String, Obj
if (engineType.equals("*") && !version.equals("*")) {
return Message.error("When engineType is any engine, the version must also be any version");
}
if (StringUtils.isBlank(configKey) || StringUtils.isBlank(value)) {
return Message.error("key or value cannot be empty");
if (StringUtils.isBlank(configKey)) {
return Message.error("key cannot be empty");
}
if (StringUtils.isNotBlank(user)) {
username = user;
Expand Down

0 comments on commit 480f50e

Please sign in to comment.