Skip to content

Commit 2a5db20

Browse files
committed
Minor fix
1 parent 3b1c2b0 commit 2a5db20

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public MediaFolderInfo CreateFolder(string path)
3131
ValidateFolderPath(path, "CreateFolder", nameof(path));
3232

3333
var dupe = _folderService.GetNodeByPath(path);
34-
if (_folderService.GetNodeByPath(path) != null)
34+
if (dupe) != null)
3535
{
3636
throw _exceptionFactory.DuplicateFolder(path, dupe.Value);
3737
}

src/Libraries/SmartStore.Services/Media/MediaServiceFileSystemAdapter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ public IFile GetFile(string path)
205205
MimeType = MimeTypes.MapNameToMimeType(path),
206206
FolderId = _folderService.GetNodeByPath(Fix(Path.GetDirectoryName(path)))?.Value.Id
207207
};
208-
_mediaService.ConvertMediaFile(mediaFile);
209208

210209
file = _mediaService.ConvertMediaFile(mediaFile);
211210
}

0 commit comments

Comments
 (0)