diff options
| author | demo <demo@antix1> | 2026-05-30 11:22:47 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-30 11:22:47 -0400 |
| commit | 4018e8570d4a1f2ad1b54201aafc1978de6428dd (patch) | |
| tree | 6be0b8ddbc835344c4f87efadb84b377295f4762 | |
| parent | 607912892bc7f1dbbdf9a8a42bc91cdb9f480079 (diff) | |
refactor: delete unused True and False
| -rw-r--r-- | hamlet.go | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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()} } |
