mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-08-21 16:22:36 +08:00
style: format codebase
This commit is contained in:
@@ -173,7 +173,7 @@ func TestSplitLosslessVideoRejectsMultipleAlbums(t *testing.T) {
|
||||
return []byte("120.0\n"), nil
|
||||
case "ffmpeg":
|
||||
pattern := args[len(args)-1]
|
||||
for index := 0; index < maxLosslessVideoParts+1; index++ {
|
||||
for index := range maxLosslessVideoParts + 1 {
|
||||
partPath := strings.Replace(pattern, "%03d", fmt.Sprintf("%03d", index+1), 1)
|
||||
if err := os.WriteFile(partPath, make([]byte, 100), 0o600); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user