Skip to content

Commit

Permalink
tidy up folder check.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Apr 22, 2024
1 parent 8320b63 commit 72bf55d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions uSync.BackOffice/Services/uSyncService_Handlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@
using System.IO;
using System.Linq;

using Microsoft.Extensions.Logging;

using uSync.BackOffice.Extensions;
using uSync.BackOffice.Models;
using uSync.BackOffice.SyncHandlers;

namespace uSync.BackOffice
{
/// <summary>
/// actions on individual handlers.
/// </summary>
/// <summary>
/// actions on individual handlers.
/// </summary>

public partial class uSyncService
public partial class uSyncService
{
private string[] GetFolderFromOptions(uSyncImportOptions options)
{
if (options.Folders?.Any() is true)
if (options.Folders?.Length > 0 is true)
return options.Folders;

if (string.IsNullOrWhiteSpace(options.RootFolder) is false)
Expand Down

0 comments on commit 72bf55d

Please sign in to comment.