Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elbandito committed Dec 20, 2019
1 parent fdfcf51 commit 1585f69
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jkutner/libproject v0.0.0-20191214203925-c329ccd54bdb/go.mod h1:nfcE0PaI8nqtX+/BQMw4CfEUf/KB3NT0P6wKkkUTyfk=
github.com/jkutner/libproject v0.0.0-20191214231549-2c8be795b68c h1:xeMQE7o0MtV3xU+JssEe1aVFMTdTNqAhPppwq15hark=
github.com/jkutner/libproject v0.0.0-20191214231549-2c8be795b68c/go.mod h1:nfcE0PaI8nqtX+/BQMw4CfEUf/KB3NT0P6wKkkUTyfk=
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
Expand Down
4 changes: 1 addition & 3 deletions internal/commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,13 @@ func readProjectDescriptor(appPath string, descriptorPath string) (libproject.Pr

if _, err := os.Stat(fullDescriptorPath); !os.IsNotExist(err) {
return libproject.ReadProjectDescriptor(fullDescriptorPath)

}
return libproject.ProjectDescriptor{}, nil
}

func parseProjectToml(appPath string, descriptorPath string) (libproject.ProjectDescriptor, error) {
if len(descriptorPath) != 0 {
return readProjectDescriptor(appPath, descriptorPath)
} else {
return readProjectDescriptor(appPath, "project.toml")
}
return readProjectDescriptor(appPath, "project.toml")
}
1 change: 0 additions & 1 deletion internal/commands/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func testBuildCommand(t *testing.T, when spec.G, it spec.S) {
})

when("repo has a project.toml", func() {

when("that is invalid", func() {
var projectTomlPath string

Expand Down

0 comments on commit 1585f69

Please sign in to comment.