79689875

Date: 2025-07-04 08:30:31
Score: 0.5
Natty:
Report link

You can safely drop async/await in GetAllAsync because the method only returns EF Core’s task (return _context.Users.ToListAsync();). No code runs afterward and there’s no using/try, so you avoid the extra state-machine allocation with identical behavior. Keep async/await only when you need flow control (e.g., using, try/catch, multiple awaits).

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Salt