From 7e2fd5e62062f910ad6fe58dcca97a7e69b85bb3 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 6 May 2019 08:59:02 -0400 Subject: Remove some ineffectual assignments as reported by goreportcard.com --- fpdf.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 7859467..cd87ad9 100644 --- a/fpdf.go +++ b/fpdf.go @@ -1736,9 +1736,9 @@ func (f *Fpdf) addFontFromBytes(familyStr, styleStr string, jsonFileBytes, zFile if utf8Bytes != nil { - if styleStr == "IB" { - styleStr = "BI" - } + // if styleStr == "IB" { + // styleStr = "BI" + // } Type := "UTF8" reader := fileReader{readerPosition: 0, array: utf8Bytes} @@ -3995,8 +3995,8 @@ func (f *Fpdf) generateCIDFontMap(font *fontDefType, LastRune int) { previousKey = key } nextKey = key + cws - ui := ws.getIndex("interval") - ui = ui + 1 + // ui := ws.getIndex("interval") + // ui = ui + 1 if ws.getIndex("interval") >= 0 { if cws > 3 { isInterval = true -- cgit v1.2.1-24-ge1ad