Skip to content

Commit

Permalink
Normalize empty string to null
Browse files Browse the repository at this point in the history
  • Loading branch information
khellang authored and ragnarstolsmark committed Oct 18, 2023
1 parent 3dbb512 commit f9d4ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hangfire.Console/Progress/DefaultProgressBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ internal DefaultProgressBar(ConsoleContext context, string progressBarId, string

_context = context ?? throw new ArgumentNullException(nameof(context));
_progressBarId = progressBarId;
_name = name;
_color = color;
_name = string.IsNullOrEmpty(name) ? null : name;
_color = string.IsNullOrEmpty(color) ? null : color;
_value = -1;
}

Expand Down

0 comments on commit f9d4ebd

Please sign in to comment.