aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-04-11 08:39:39 +0200
committerBjørn Erik Pedersen <[email protected]>2018-04-11 09:50:19 +0200
commitb110d0ae04e13fb45c739bcebb580709745082e6 (patch)
tree7db6bfde65008ec29bdc87746f3201c1615c8a13 /main.go
parent73825cfc1c0b007830b24bb1947a565175b52d36 (diff)
downloadhugo-b110d0ae04e13fb45c739bcebb580709745082e6.tar.gz
hugo-b110d0ae04e13fb45c739bcebb580709745082e6.zip
commands: Remove the Hugo global
There are still some cleaning to do, but that felt good. See #4598
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index e1c5b39f8..3baf6c275 100644
--- a/main.go
+++ b/main.go
@@ -31,9 +31,10 @@ func main() {
os.Exit(-1)
}
- if commands.Hugo != nil {
+ // TODO(bep) cli refactor
+ /*if commands.Hugo != nil {
if commands.Hugo.Log.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
os.Exit(-1)
}
- }
+ }*/
}