summaryrefslogtreecommitdiff
path: root/warn.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 01:23:43 -0600
committerJeff Carr <[email protected]>2024-11-07 01:23:43 -0600
commitef61eb494b42a7bc226de1edc114579ce530abdd (patch)
tree0bd23b52a8aae23806d8cdc9896936c39cd07728 /warn.go
parent2b11a4e334f465aef868d6c1bf3f1a7c9dfd5c27 (diff)
try allowing switching to writing to httpv0.22.2
Diffstat (limited to 'warn.go')
-rw-r--r--warn.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/warn.go b/warn.go
index d02d301..f94e255 100644
--- a/warn.go
+++ b/warn.go
@@ -5,7 +5,11 @@
package log
func Warn(a ...any) {
- if ! WARN.Ok() { return }
- if ! WARN.b { return }
+ if !WARN.Ok() {
+ return
+ }
+ if !WARN.b {
+ return
+ }
realPrintln(a...)
}