diff --git a/cmd/sdk-server/main.go b/cmd/sdk-server/main.go index 5a4167fb03..5f90fa2c4a 100644 --- a/cmd/sdk-server/main.go +++ b/cmd/sdk-server/main.go @@ -174,7 +174,8 @@ func main() { func registerLocal(grpcServer *grpc.Server, ctlConf config) (func(), error) { filePath := "" if ctlConf.LocalFile != "" { - filePath, err := filepath.Abs(ctlConf.LocalFile) + var err error + filePath, err = filepath.Abs(ctlConf.LocalFile) if err != nil { return nil, err }