Skip to content

Commit d9fbe3a

Browse files
committed
Fixes compilation error
1 parent 2a5db20 commit d9fbe3a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Libraries/SmartStore.Services/Media/MediaService.Folder.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Data.Entity;
34
using System.IO;
45
using System.Linq;
5-
using System.Linq.Expressions;
66
using System.Linq.Dynamic.Core;
7-
using SmartStore.Core.Data;
8-
using SmartStore.Core.Domain.Media;
97
using System.Runtime.CompilerServices;
108
using SmartStore.Collections;
11-
using SmartStore.Core.Localization;
12-
using System.Data.Entity;
9+
using SmartStore.Core.Data;
10+
using SmartStore.Core.Domain.Media;
1311

1412
namespace SmartStore.Services.Media
1513
{
@@ -31,7 +29,7 @@ public MediaFolderInfo CreateFolder(string path)
3129
ValidateFolderPath(path, "CreateFolder", nameof(path));
3230

3331
var dupe = _folderService.GetNodeByPath(path);
34-
if (dupe) != null)
32+
if (dupe != null)
3533
{
3634
throw _exceptionFactory.DuplicateFolder(path, dupe.Value);
3735
}

0 commit comments

Comments
 (0)