summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-debug/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-debug/debug.go')
-rw-r--r--vendor/codeberg.org/gruf/go-debug/debug.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/vendor/codeberg.org/gruf/go-debug/debug.go b/vendor/codeberg.org/gruf/go-debug/debug.go
index 6b5e56548..e7121390d 100644
--- a/vendor/codeberg.org/gruf/go-debug/debug.go
+++ b/vendor/codeberg.org/gruf/go-debug/debug.go
@@ -4,14 +4,9 @@ import (
_debug "runtime/debug"
)
-// DEBUG returns whether debugging is enabled.
-func DEBUG() bool {
- return debug
-}
-
// Run will only call fn if DEBUG is enabled.
func Run(fn func()) {
- if debug {
+ if DEBUG {
fn()
}
}