Skip to content

Commit

Permalink
fix: fix some typos according bird's review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
  • Loading branch information
daniel-hutao committed Oct 18, 2022
1 parent 32fd6a3 commit b785223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions internal/pkg/develop/plugin/template/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var deleteGoDirTpl = "internal/pkg/plugin/[[ .Name | dirFormat ]]/"
var deleteGoContentTpl = `package [[ .Name | format ]]
import (
"github.com/devstream-io/devstream/internal/pkg/configmanager"
"github.com/devstream-io/devstream/internal/pkg/plugininstaller"
)
Expand Down
8 changes: 4 additions & 4 deletions internal/pkg/statemanager/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ type State struct {
ResourceStatus ResourceStatus `yaml:"resourceStatus"`
}

func (rs *ResourceStatus) SetOutputs(outputs ResourceOutputs) {
(*rs)["outputs"] = outputs
func (rs ResourceStatus) SetOutputs(outputs ResourceOutputs) {
(rs)["outputs"] = outputs
}

func (rs *ResourceStatus) GetOutputs() ResourceOutputs {
outputs, ok := (*rs)["outputs"]
func (rs ResourceStatus) GetOutputs() ResourceOutputs {
outputs, ok := (rs)["outputs"]
if !ok {
return nil
}
Expand Down

0 comments on commit b785223

Please sign in to comment.