Skip to content

Commit 836c98c

Browse files
committed
slightly simplify function call
1 parent 91045c6 commit 836c98c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commands/compile/compile.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,9 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W
227227
if exportDir := req.GetExportDir(); exportDir != "" {
228228
exportPath = paths.New(exportDir)
229229
} else {
230-
exportPath = sketch.FullPath
231230
// Add FQBN (without configs part) to export path
232231
fqbnSuffix := strings.Replace(fqbn.StringWithoutConfig(), ":", ".", -1)
233-
exportPath = exportPath.Join("build").Join(fqbnSuffix)
232+
exportPath = sketch.FullPath.Join("build", fqbnSuffix)
234233
}
235234
logrus.WithField("path", exportPath).Trace("Saving sketch to export path.")
236235
if err := exportPath.MkdirAll(); err != nil {

0 commit comments

Comments
 (0)