Skip to content

Commit

Permalink
Local SDK wasn't loading referenced file
Browse files Browse the repository at this point in the history
Subtle bug in variable assignment caused the sdk server to not load a
GameServer yaml when passed in.

Closes googleforgames#1508
  • Loading branch information
markmandel committed May 1, 2020
1 parent d12ae7b commit 7a1397a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/sdk-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7a1397a

Please sign in to comment.