Skip to content

Commit

Permalink
One less code path (#129)
Browse files Browse the repository at this point in the history
Simplified.
  • Loading branch information
pboothe authored Nov 20, 2020
1 parent 66a7d0e commit 5fa2a44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions flagx/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ func (u *URL) Get() *url.URL {
func (u *URL) Set(s string) error {
var err error
(*u).URL, err = url.Parse(s)
if err != nil {
return err
}
return nil
return err
}

// String formats the underlying URL as a string.
Expand Down

0 comments on commit 5fa2a44

Please sign in to comment.