mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 23:06:36 +08:00
[优化] 代码优化
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"log/slog"
|
||||
@@ -805,7 +806,7 @@ func persistDownloadedServerBinary(ctx context.Context, execPath string, release
|
||||
info := buildUploadedServerBinaryView(fileName, common.Version, detectedVersion, time.Now())
|
||||
if !info.ReadyToUpgrade {
|
||||
_ = os.Remove(tempPath)
|
||||
return nil, fmt.Errorf(info.ComparisonMessage)
|
||||
return nil, errors.New(info.ComparisonMessage)
|
||||
}
|
||||
|
||||
return &manualServerBinaryCandidate{
|
||||
|
||||
Reference in New Issue
Block a user