1

Fix linter warnings

This commit is contained in:
2020-02-22 18:33:33 +04:00
parent f30fb4dc67
commit fd184225f1
9 changed files with 35 additions and 3 deletions

View File

@@ -64,9 +64,11 @@ func New(cc *context.Context) {
func Process() {
uberDebug, _ = c.Flagger.GetBoolValue("fetcherDebug")
forumID, _ := c.Flagger.GetIntValue("forum")
if forumID == 0 {
dlog.Fatal().Msg("Номер форума не указан. Используйте ключ -forum XXX, чтобы указать номер форума")
}
outputDirPathPrefix, _ := c.Flagger.GetStringValue("outputDir")
dlog.Info().Int("forum ID", forumID).Msg("Получен ID форума, начинаем работу...")