Remove duplicated code in Linux updater

This commit is contained in:
Eric Kotato 2024-07-01 19:15:36 +03:00
parent fbb22ebd3e
commit 1b26448ae0

View file

@ -504,12 +504,6 @@ int main(int argc, char *argv[]) {
push("-workdir"); push("-workdir");
push(workdir); push(workdir);
} }
auto args = vector<char*>();
for (auto &arg : values) {
args.push_back(arg.data());
}
args.push_back(nullptr);
if (!useEnvApi) push("-no-env-api"); if (!useEnvApi) push("-no-env-api");
if (customApiId && customApiHash) { if (customApiId && customApiHash) {