Skip to content

Commit 9684c46

Browse files
committed
refactor(serverHandler): reorder code block
1 parent 7e9ecb8 commit 9684c46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/serverHandler/responseData.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,13 @@ func (h *handler) getResponseData(r *http.Request) (data *responseData) {
321321
status = http.StatusInternalServerError
322322
}
323323

324+
subItems = h.FilterItems(subItems)
325+
sortSubItems(subItems)
326+
324327
if h.emptyRoot && status == http.StatusOK && r.RequestURI != "/" {
325328
status = http.StatusNotFound
326329
}
327330

328-
subItems = h.FilterItems(subItems)
329-
sortSubItems(subItems)
330-
331331
subItemPrefix := getSubItemPrefix(rawReqPath, tailSlash)
332332

333333
canUpload := h.getCanUpload(item, rawReqPath, reqFsPath)

0 commit comments

Comments
 (0)