summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-30 11:22:47 -0400
committerdemo <demo@antix1>2026-05-30 11:22:47 -0400
commit4018e8570d4a1f2ad1b54201aafc1978de6428dd (patch)
tree6be0b8ddbc835344c4f87efadb84b377295f4762
parent607912892bc7f1dbbdf9a8a42bc91cdb9f480079 (diff)
refactor: delete unused True and False
-rw-r--r--hamlet.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/hamlet.go b/hamlet.go
index 8b2a6b7..2b1c111 100644
--- a/hamlet.go
+++ b/hamlet.go
@@ -10,16 +10,6 @@ func (a Assertion) Assert() bool {
return a.value
}
-// False reports whether v contains a zero value for its type.
-func False(v any) Assertion {
- return Assertion{reflect.ValueOf(v).IsZero()}
-}
-
-// True reports whether v contains a non-zero value for its type.
-func True(v any) Assertion {
- return Assertion{!reflect.ValueOf(v).IsZero()}
-}
-
func New(v any) Assertion {
return Assertion{!reflect.ValueOf(v).IsZero()}
}