Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseCoretta committed Jul 3, 2023
1 parent 5a4592a commit 9ca74b6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,18 @@ func stackTypeAliasConverter(u any) (S Stack, converted bool) {

a := typOf(u) // current (src) type
b := typOf(Stack{}) // target (dest) type
if a.ConvertibleTo(b) {
X := valOf(u).Convert(b).Interface()
if assert, ok := X.(Stack); ok {
if !assert.IsZero() {
if s := assert.String(); s != badCond && len(s) > 0 {
S = assert
converted = true
return
}
}
}
}
if a.ConvertibleTo(b) {
X := valOf(u).Convert(b).Interface()
if assert, ok := X.(Stack); ok {
if !assert.IsZero() {
if s := assert.String(); s != badCond && len(s) > 0 {
S = assert
converted = true
return
}
}
}
}

return
}
Expand Down

0 comments on commit 9ca74b6

Please sign in to comment.