From 2d01ba7dbe3a9a3f0f037b50dac262b5897829f3 Mon Sep 17 00:00:00 2001 From: Matias Insaurralde Date: Thu, 20 Apr 2017 16:49:39 -0400 Subject: [PATCH] Simplifying code (#129) * host: follow gosimple suggestions * conn: follow gosimple suggestions * devices: follow gosimple suggestions * Update CONTRIBUTORS --- CONTRIBUTORS | 1 + devices/lepton/lepton.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 52b9e98..b9b27e1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -27,5 +27,6 @@ # Please keep the list sorted. Marc-Antoine Ruel +Matias Insaurralde Stephan Sperber Thorsten von Eicken diff --git a/devices/lepton/lepton.go b/devices/lepton/lepton.go index 384dbc6..6217096 100644 --- a/devices/lepton/lepton.go +++ b/devices/lepton/lepton.go @@ -159,7 +159,7 @@ func (d *Dev) ReadImg() (*Frame, error) { if err := d.readFrame(f); err != nil { return nil, err } - if f.Metadata.FFCDesired == true { + if f.Metadata.FFCDesired { // TODO(maruel): Automatically trigger FFC when applicable, only do if // the camera has a shutter. //go d.RunFFC()