Skip to content

Commit

Permalink
Misc minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Jun 27, 2024
1 parent de99ac1 commit d2e5829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Skybrud.Essentials.Umbraco/HttpContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static bool IsBackOfficeAuthenticated(this HttpContext? context) {
/// <returns><see langword="false"/> if the user is logged in to the backoffice; otherwise, <see langword="false"/>.</returns>
public static bool IsBackOfficeAuthenticated(this HttpContext? context, [NotNullWhen(true)] out ClaimsIdentity? identity) {

// Check whether a backoffice identity is already available at this point - eg. for a backoffice request
// Check whether a backoffice identity is already available at this point - e.g. for a backoffice request
if (TryGetBackOfficeIdentity(context, out identity)) return true;

// Try to authenticate the user
Expand Down
2 changes: 1 addition & 1 deletion src/Skybrud.Essentials.Umbraco/Scheduling/TaskHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public bool ShouldRun(object task, DateTime now, int hour, int minute, DayOfWeek
if (now < scheduled) return false;

// Return "false" if the task is not supposed to run the current day
if (weekdays != null && weekdays.Length > 0 && !weekdays.Contains(now.DayOfWeek)) return false;
if (weekdays is { Length: > 0 } && !weekdays.Contains(now.DayOfWeek)) return false;

// Get the last run time of the task
DateTime lastRunTime = GetLastRunTime(GetTaskName(task));
Expand Down

0 comments on commit d2e5829

Please sign in to comment.