diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-12-02 13:23:25 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-12-03 13:12:58 +0100 |
commit | d90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch) | |
tree | 7b1b14464eefec1188ca2eed53c64e4823453cc9 /helpers/general.go | |
parent | 32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff) |
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'helpers/general.go')
-rw-r--r-- | helpers/general.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/helpers/general.go b/helpers/general.go index 80e303087..9589514e0 100644 --- a/helpers/general.go +++ b/helpers/general.go @@ -157,7 +157,6 @@ func ReaderToString(lines io.Reader) string { // ReaderContains reports whether subslice is within r. func ReaderContains(r io.Reader, subslice []byte) bool { - if r == nil || len(subslice) == 0 { return false } @@ -345,7 +344,6 @@ func InitLoggers() { func Deprecated(item, alternative string, err bool) { if err { DistinctErrorLog.Printf("%s is deprecated and will be removed in Hugo %s. %s", item, hugo.CurrentVersion.Next().ReleaseVersion(), alternative) - } else { DistinctWarnLog.Printf("%s is deprecated and will be removed in a future release. %s", item, alternative) } |