Skip to content

Commit d48467a

Browse files
KoreaNirsaspring-builds
authored andcommitted
Refactor: remove redundant null check in Builder#apiKey(String) (#3654)
Fixes #3654 Signed-off-by: nirsa <[email protected]> (cherry picked from commit a1c341a)
1 parent 75d4e6f commit d48467a

File tree

1 file changed

+0
-1
lines changed
  • models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api

1 file changed

+0
-1
lines changed

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,6 @@ public Builder apiKey(ApiKey apiKey) {
19091909
}
19101910

19111911
public Builder apiKey(String simpleApiKey) {
1912-
Assert.notNull(simpleApiKey, "simpleApiKey cannot be null");
19131912
this.apiKey = new SimpleApiKey(simpleApiKey);
19141913
return this;
19151914
}

0 commit comments

Comments
 (0)