Skip to content

Commit acd6071

Browse files
committed
fix: code cleanup
1 parent 2d89a2b commit acd6071

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/orchestrator/repo/repo.go

-3
Original file line numberDiff line numberDiff line change
@@ -311,22 +311,19 @@ func (r *RepoOrchestrator) Restore(ctx context.Context, snapshotId string, snaps
311311
opts = append(opts, restic.WithFlags("--target", target))
312312

313313
if snapshotPath != "" {
314-
// Convertire il separatore di percorso per Windows in uno universale
315314
normalizedPath := strings.ReplaceAll(snapshotPath, "\\", "/")
316315

317316
dir := path.Dir(normalizedPath)
318317
base := path.Base(normalizedPath)
319318

320319
if runtime.GOOS == "windows" {
321-
// Su Windows, specificare il percorso relativo come su Linux
322320
if dir != "" {
323321
snapshotId = snapshotId + ":" + dir
324322
}
325323
if base != "" {
326324
opts = append(opts, restic.WithFlags("--include", base))
327325
}
328326
} else {
329-
// Su Linux, mantenere la logica esistente
330327
if dir != "" {
331328
snapshotId = snapshotId + ":" + dir
332329
}

0 commit comments

Comments
 (0)