diff --git a/manager.go b/manager.go index 2c1845c..0b5dbad 100644 --- a/manager.go +++ b/manager.go @@ -305,14 +305,10 @@ func DeployGameMods(gameName string, modArchivePaths []string) error { } } - if removeError := os.Remove(deployFilePath); removeError != nil { - if !(os.IsNotExist(removeError)) { - return removeError - } - } - if linkError := os.Link(path, deployFilePath); linkError != nil { - return linkError + if !(os.IsNotExist(linkError)) { + return linkError + } } return nil