summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorPourya Daneshvar <pourya@daneshvar.me>2016-01-24 10:24:21 +0330
committerPourya Daneshvar <pourya@daneshvar.me>2016-01-24 10:24:21 +0330
commit863ff19e1f5f94288da7bdac23eeb3f3b4f2c547 (patch)
treebd67dcfb647132e3baada2120a5bc4e3255dc6ef /modules/setting
parent7ef9a055886574655d9f2be70c957bc16bf30500 (diff)
downloadgitea-863ff19e1f5f94288da7bdac23eeb3f3b4f2c547.tar.gz
gitea-863ff19e1f5f94288da7bdac23eeb3f3b4f2c547.zip
Fixed forgotten err variable assignment
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index e719153ae2..fcb234add6 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -428,7 +428,7 @@ func NewContext() {
log.Fatal(4, "Fail to map Markdown settings: %v", err)
} else if err = Cfg.Section("git").MapTo(&Git); err != nil {
log.Fatal(4, "Fail to map Git settings: %v", err)
- } else if Cfg.Section("cron").MapTo(&Cron); err != nil {
+ } else if err = Cfg.Section("cron").MapTo(&Cron); err != nil {
log.Fatal(4, "Fail to map Cron settings: %v", err)
}