From 77de8d1848dd4150f9f204f2362eacaddc098b96 Mon Sep 17 00:00:00 2001 From: "Andrew E. Torda" <torda@zbh.uni-hamburg.de> Date: Thu, 27 Jan 2022 11:47:06 +0100 Subject: [PATCH] linted --- mc_work/dorun.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mc_work/dorun.go b/mc_work/dorun.go index c61d01c..4b9cfd5 100644 --- a/mc_work/dorun.go +++ b/mc_work/dorun.go @@ -197,7 +197,6 @@ func nRunAdj(mcPrm *mcPrm, nstep uint32, runAcc float64, xDlta float32) float32 } return xDlta } -func breaker(...interface{}) {} // doRun does a Monte Carlo run. Although single precision is fine for the // coordinates and function, we use double precision for the temperature. @@ -213,7 +212,7 @@ func doRun(mcPrm *mcPrm) error { defer cprm.fOut.Flush() } - if c, ok := cprm.fplotWrt.(io.Closer); ok == true { // will also have to do for X values + if c, ok := cprm.fplotWrt.(io.Closer); ok { // will also have to do for X values defer c.Close() } @@ -271,7 +270,7 @@ func doRun(mcPrm *mcPrm) error { return err } - if bBuf, ok := cprm.fplotWrt.(withBytes); ok == true { + if bBuf, ok := cprm.fplotWrt.(withBytes); ok { fmt.Println("bBuf for plotting is this big", len(bBuf.Bytes())) } if err := plotxWrt(&cprm, mcPrm.xPltName, len(mcPrm.xIni)); err != nil { -- GitLab