Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Remove OSPath.String() call in GUI backend (closes #430) #493

Merged
merged 2 commits into from
Aug 29, 2020

Conversation

debnil
Copy link
Contributor

@debnil debnil commented Aug 28, 2020

This PR removes a call to OSPath.String() in the GUI backend. The call occurs because the error format invokes the %s format string on an OSPath variable as input. That calls Go's Stringer tool, which in turn invokes the OSPath.String() method. To avoid this, we now pass the result of .AsString() to the error formatter. This closes #430.

@debnil debnil requested a review from nikhilsaraf as a code owner August 28, 2020 21:28
@debnil debnil changed the title Remove OSPath.String() call in GUI backend Remove OSPath.String() call in GUI backend (closes #430) Aug 28, 2020
@debnil debnil self-assigned this Aug 28, 2020
Copy link
Contributor

@nikhilsaraf nikhilsaraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@nikhilsaraf nikhilsaraf merged commit 49c03d6 into master Aug 29, 2020
@nikhilsaraf nikhilsaraf deleted the debnil/fix-ospath-string branch December 3, 2020 15:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.5] Kelp GUI: Another instance of OSPath.String() being called
3 participants