chore: clean up backend code, fix most inspections

This commit is contained in:
sam 2024-12-14 16:51:58 +01:00
parent 49b2902d6d
commit 11257ae069
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
21 changed files with 86 additions and 27 deletions

View file

@ -14,10 +14,8 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
using System.Net;
using System.Text.Json.Serialization;
using System.Web;
using Foxnouns.Backend.Database;
using Foxnouns.Backend.Database.Models;
using Foxnouns.Backend.Extensions;
namespace Foxnouns.Backend.Services.Auth;
@ -120,8 +118,7 @@ public partial class FediverseAuthService
private async Task<string> GenerateMisskeyAuthUrlAsync(
FediverseApplication app,
bool forceRefresh,
string? state = null
bool forceRefresh
)
{
if (forceRefresh)

View file

@ -131,8 +131,7 @@ public partial class FediverseAuthService
),
FediverseInstanceType.MisskeyApi => await GenerateMisskeyAuthUrlAsync(
app,
forceRefresh,
state
forceRefresh
),
_ => throw new ArgumentOutOfRangeException(nameof(app), app.InstanceType, null),
};