Skip to content

Commit

Permalink
convert the short_if.go unix format
Browse files Browse the repository at this point in the history
  • Loading branch information
胡正阳 committed Sep 9, 2021
1 parent 5de16da commit 66b3c88
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions short_if.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package funk

func ShortIf(condition bool, a interface{}, b interface{}) interface{} {
if condition {
return a
}
return b
}
package funk

func ShortIf(condition bool, a interface{}, b interface{}) interface{} {
if condition {
return a
}
return b
}

0 comments on commit 66b3c88

Please sign in to comment.