Skip to content

Commit 8e956ef

Browse files
KoreaNirsachedim
authored andcommitted
Refactor: remove redundant null check in Builder#apiKey(String) (spring-projects#3654)
Auto-cherry-pick to 1.0.x Fixes spring-projects#3654 Signed-off-by: nirsa <[email protected]>
1 parent 5591963 commit 8e956ef

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)