Skip to content

Commit

Permalink
refactor: make return type nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaVetnic committed Jan 29, 2024
1 parent a968a74 commit 107ef6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Backbone.Modules.Devices.Application.Extensions;

public static class TierQueryableExtensions
{
public static async Task<Tier> GetBasicTier(this IQueryable<Tier> query, CancellationToken cancellationToken)
public static async Task<Tier?> GetBasicTier(this IQueryable<Tier> query, CancellationToken cancellationToken)
{
var basicTier = await query.FirstAsync(t => t.Name == TierName.BASIC_DEFAULT_NAME, cancellationToken);
return basicTier;
Expand Down

0 comments on commit 107ef6a

Please sign in to comment.