Skip to content

Conversation

@sunyuhan1998
Copy link
Contributor

In the org.springframework.ai.reader.TextReader#get method of TextReader, there was a redundant assignment for the SOURCE_METADATA key in customMetadata.

In addition, the null checks for the results of resource.getURI() and resource.getURL() in getResourceIdentifier were also unnecessary.

…er` and unwrapped some unnecessary conditional checks.

Signed-off-by: Sun Yuhan <[email protected]>
@ilayaperumalg
Copy link
Member

@sunyuhan1998 Thanks for the PR!

@ilayaperumalg ilayaperumalg merged commit c1ee22d into spring-projects:main Jun 25, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Jun 25, 2025
…er` and unwrapped some unnecessary conditional checks. (#3627)

Fixes #3627

Signed-off-by: Sun Yuhan <[email protected]>
Co-authored-by: Sun Yuhan <[email protected]>
(cherry picked from commit c1ee22d)
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 2025
…er` and unwrapped some unnecessary conditional checks. (spring-projects#3627)

Auto-cherry-pick to 1.0.x
Fixes spring-projects#3627

Signed-off-by: Sun Yuhan <[email protected]>
Co-authored-by: Sun Yuhan <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
…er` and unwrapped some unnecessary conditional checks. (spring-projects#3627)

Auto-cherry-pick to 1.0.x
Fixes spring-projects#3627

Signed-off-by: Sun Yuhan <[email protected]>
Co-authored-by: Sun Yuhan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants