chore: clean up backend code, fix most inspections
This commit is contained in:
parent
49b2902d6d
commit
11257ae069
21 changed files with 86 additions and 27 deletions
|
@ -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)
|
||||
|
|
|
@ -131,8 +131,7 @@ public partial class FediverseAuthService
|
|||
),
|
||||
FediverseInstanceType.MisskeyApi => await GenerateMisskeyAuthUrlAsync(
|
||||
app,
|
||||
forceRefresh,
|
||||
state
|
||||
forceRefresh
|
||||
),
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(app), app.InstanceType, null),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue