Skip to content

Commit 251414b

Browse files
Remove unused Users service imports and clean up conditional in ProjectService.
1 parent a3598df commit 251414b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/Controllers/User/AuthController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using Microsoft.AspNetCore.Mvc;
33
using sparkly_server.DTO.Auth;
44
using sparkly_server.Services.Auth.service;
5-
using sparkly_server.Services.Users;
65
using sparkly_server.Services.Users.service;
76

87
namespace sparkly_server.Controllers.User

src/Controllers/User/ProfileController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Microsoft.AspNetCore.Authorization;
22
using Microsoft.AspNetCore.Mvc;
3-
using sparkly_server.Services.Users;
43
using sparkly_server.Services.Users.CurrentUser;
54

65
namespace sparkly_server.Controllers.User

src/Services/Projects/service/ProjectService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using sparkly_server.DTO.Projects.Feed;
44
using sparkly_server.Enum;
55
using sparkly_server.Services.Projects.repo;
6-
using sparkly_server.Services.Users;
76
using sparkly_server.Services.Users.CurrentUser;
87
using sparkly_server.Services.Users.repo;
98

@@ -310,8 +309,7 @@ public async Task UpdateProjectAsync(Guid projectId, UpdateProjectRequest reques
310309
project.Rename(request.ProjectName);
311310
}
312311

313-
if (request.Description is not null &&
314-
request.Description != project.Description)
312+
if (request.Description != project.Description)
315313
{
316314
project.ChangeDescription(request.Description);
317315
}

0 commit comments

Comments
 (0)