Skip to content

Commit

Permalink
Removed redundant instance initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 17, 2024
1 parent 61aada4 commit 09dd8fc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions commands/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ func Init(req *rpc.InitRequest, responseCallback func(r *rpc.InitResponse)) erro
if responseCallback == nil {
responseCallback = func(r *rpc.InitResponse) {}
}
reqInst := req.GetInstance()
if reqInst == nil {
return &cmderrors.InvalidInstanceError{}
}
instance := req.GetInstance()
if !instances.IsValid(instance) {
return &cmderrors.InvalidInstanceError{}
Expand Down

0 comments on commit 09dd8fc

Please sign in to comment.