Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
remove contructor as indicator to build the build tool
Browse files Browse the repository at this point in the history
  • Loading branch information
imantung committed Nov 6, 2019
1 parent 5b38bf8 commit bbd6eae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions EXPERIMENTAL/typicmd/prebuilder/checker.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package prebuilder

type checker struct {
mockTarget bool
constructor bool
mockTarget bool
// constructor bool
configuration bool
testTarget bool
buildToolBinary bool
Expand All @@ -13,7 +13,6 @@ type checker struct {

func (r *checker) checkBuildTool() bool {
return r.mockTarget ||
r.constructor ||
r.configuration ||
r.testTarget ||
r.buildToolBinary ||
Expand Down
1 change: 0 additions & 1 deletion EXPERIMENTAL/typicmd/prebuilder/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func TestChecker_CheckBuildTool(t *testing.T) {
}{
{checker{}, false},
{checker{mockTarget: true}, true},
{checker{constructor: true}, true},
{checker{configuration: true}, true},
{checker{testTarget: true}, true},
{checker{buildToolBinary: true}, true},
Expand Down
2 changes: 1 addition & 1 deletion EXPERIMENTAL/typicmd/prebuilder/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func Run(ctx *typictx.Context) {
}); err != nil {
log.Fatal(err.Error())
}
if checker.constructor, err = Generate("constructor", constructor{
if _, err = Generate("constructor", constructor{
ApplicationImports: preb.ApplicationImports,
Constructors: preb.ProjectFiles.Autowires(),
}); err != nil {
Expand Down

0 comments on commit bbd6eae

Please sign in to comment.