@@ -13,9 +13,9 @@ import (
1313
1414type DetectList map [Path ]util.DetectType
1515
16- // PreDelete Three scenarios
17- // 1.File does not exist Notice
18- // 2.File exists but hash value does not match,Change the original file name to xxx.bak
16+ // PreDelete Three scenarios are possible:
17+ // 1.File does not exist notice
18+ // 2.File exists but hash value does not match, change the original file name to xxx.bak
1919// 3.File exists and the hash value matches
2020func PreDelete (deleteList * ModPackInfo , serverPath string ) DetectList {
2121 detectType := make (DetectList , 10 )
@@ -33,10 +33,10 @@ func PreDelete(deleteList *ModPackInfo, serverPath string) DetectList {
3333 return detectType
3434}
3535
36- // PreUpdate Three scenarios
36+ // PreUpdate Three scenarios are possible:
3737// 1.File does not exist
38- // 2.File exists but hash value does not match,Change the original file name to xxx.bak
39- // 3.File exists and the hash value matches,Remove the item from the queue
38+ // 2.File exists but hash value does not match, change the original file name to xxx.bak
39+ // 3.File exists and the hash value matches, remove the item from the queue
4040func PreUpdate (updateList * ModPackInfo , serverPath string ) DetectList {
4141 detectType := make (DetectList , 10 )
4242 for filePath := range updateList .File {
@@ -77,7 +77,7 @@ func ModPackDeleteDo(deleteList DetectList, serverPath string) error {
7777}
7878
7979func ModPackUpdateDo (updateList DetectList , updateFileInfo FileMap , serverPath string , modPackPath string , downloadPools * requester.DownloadPools ) error {
80- //backup file and download file in modrinth index
80+ // backup file and download file in modrinth index
8181 for filePath := range updateList {
8282 switch updateList [filePath ] {
8383 case util .PathNoMatch :
0 commit comments