Skip to content

removes non essential calls to File.exist?#3

Merged
eelcoj merged 1 commit intoRails-Designer:mainfrom
nflorentin:main
Feb 16, 2026
Merged

removes non essential calls to File.exist?#3
eelcoj merged 1 commit intoRails-Designer:mainfrom
nflorentin:main

Conversation

@nflorentin
Copy link
Copy Markdown
Contributor

@nflorentin nflorentin commented Feb 9, 2026

I'm not sure if not raising Icons::IconNotFound in Icon::FilePath class is problematic or not ?

I think it is not a problem if the exception is raised when reading the file instead of when the path is built.

issue #2

@eelcoj
Copy link
Copy Markdown
Contributor

eelcoj commented Feb 11, 2026

Oh, interesting one. Thanks also for profiling. I'll give this a try soon, as I only recently extracted the core into this new gem I am careful of adding many new changes.

This is looking good; will give it a try. Thanks!

@eelcoj eelcoj merged commit 46ca735 into Rails-Designer:main Feb 16, 2026
@eelcoj
Copy link
Copy Markdown
Contributor

eelcoj commented Feb 16, 2026

Thanks for this @nflorentin! ✨

Just merged, but then noticed there is no test for the new raise in svg. Gonna add that now. :)

This behaviour was already tested. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants