trashz403 opened a new pull request, #886: URL: https://github.com/apache/tomcat/pull/886
fix(session): Remove unreachable code in FileStore#load The `if (!file.exists())` check within the try-with-resources block in the `load()` method is unreachable. The `new FileInputStream()` constructor, which is executed before the try block's body, will throw a `FileNotFoundException` if the file does not exist. This prevents the conditional check from ever being reached, making it redundant code. This commit removes the unnecessary check to simplify the method. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org