Permalink
Browse files

Simplify code to return error more directly. (#713)

  • Loading branch information...
leitzler authored and dmitshur committed Nov 2, 2017
1 parent 0991e3a commit 077f6d61e0417fd503e5f8023c2a7c118a65cc91
Showing with 3 additions and 8 deletions.
  1. +3 −8 tool.go
View
11 tool.go
@@ -115,10 +115,8 @@ func main() {
s.Watcher.Add(name)
}
}
if err := s.BuildFiles(args, pkgObj, currentDirectory); err != nil {
return err
}
return nil
err := s.BuildFiles(args, pkgObj, currentDirectory)
return err
}
// Expand import path patterns.
@@ -342,10 +340,7 @@ func main() {
}
}
_, err := s.BuildPackage(testPkg)
if err != nil {
return err
}
return nil
return err
}
if err := collectTests(&gbuild.PackageData{

0 comments on commit 077f6d6

Please sign in to comment.