From ca5bd54495bac2684742551736cc1d4b7045d668 Mon Sep 17 00:00:00 2001 From: Basique Evangelist Date: Tue, 2 Mar 2021 22:13:33 +0300 Subject: [PATCH] Formatting --- JetHerald/Db.cs | 4 ++-- JetHerald/JetHeraldBot.cs | 4 ++-- JetHerald/Startup.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/JetHerald/Db.cs b/JetHerald/Db.cs index 0eef351..7fd48fe 100644 --- a/JetHerald/Db.cs +++ b/JetHerald/Db.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Microsoft.Extensions.Options; using MySql.Data.MySqlClient; using Dapper; @@ -51,7 +51,7 @@ namespace JetHerald " FROM topic t " + " LEFT JOIN topic_chat tc ON t.TopicId = tc.TopicId AND tc.ChatId = @chatId " + " WHERE ReadToken = @token", - new { token, chatId}); + new { token, chatId }); } public async Task CreateTopic(long userId, string name, string descr) diff --git a/JetHerald/JetHeraldBot.cs b/JetHerald/JetHeraldBot.cs index dfa4411..7d9641d 100644 --- a/JetHerald/JetHeraldBot.cs +++ b/JetHerald/JetHeraldBot.cs @@ -33,7 +33,7 @@ namespace JetHerald if (Config.UseProxy) { var httpProxy = new WebProxy(Config.ProxyUrl) - { Credentials = new NetworkCredential(Config.ProxyLogin, Config.ProxyPassword) }; + { Credentials = new NetworkCredential(Config.ProxyLogin, Config.ProxyPassword) }; Client = new TelegramBotClient(Config.ApiKey, httpProxy); } else @@ -78,7 +78,7 @@ namespace JetHerald } catch (Exception e) { - Log.LogError(e, "Exception occured during handling of command: "+ msg.Text); + Log.LogError(e, "Exception occured during handling of command: " + msg.Text); } } } diff --git a/JetHerald/Startup.cs b/JetHerald/Startup.cs index ff904d5..0fe5121 100644 --- a/JetHerald/Startup.cs +++ b/JetHerald/Startup.cs @@ -37,7 +37,7 @@ namespace JetHerald { app.UseDeveloperExceptionPage(); } - + app.UseRouting(); app.UseEndpoints(endpoints => {