Skip to content

Commit f8cd723

Browse files
cmagliesilvanocerza
authored andcommitted
slightly simplify function call
1 parent c07d0f5 commit f8cd723

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
@@ -239,10 +239,9 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W
239239
if exportDir := req.GetExportDir(); exportDir != "" {
240240
exportPath = paths.New(exportDir)
241241
} else {
242-
exportPath = sketch.FullPath
243242
// Add FQBN (without configs part) to export path
244243
fqbnSuffix := strings.Replace(fqbn.StringWithoutConfig(), ":", ".", -1)
245-
exportPath = exportPath.Join("build").Join(fqbnSuffix)
244+
exportPath = sketch.FullPath.Join("build", fqbnSuffix)
246245
}
247246
logrus.WithField("path", exportPath).Trace("Saving sketch to export path.")
248247
if err := exportPath.MkdirAll(); err != nil {

0 commit comments

Comments
 (0)