Minor refactoring

This commit is contained in:
Adrian-George Bostan 2020-01-21 22:18:11 +02:00
parent 692ead8496
commit 3bd083475d
2 changed files with 1 additions and 4 deletions

View File

@ -67,7 +67,7 @@ func newOutlineDestFromPdfObject(o core.PdfObject, r *PdfReader) (*OutlineDest,
// Extract magnification mode.
mode, ok := core.GetNameVal(destArr.Get(1))
if !ok {
common.Log.Debug("invalid outline destination zoom mode: %v", destArr.Get(1))
common.Log.Debug("invalid outline destination magnification mode: %v", destArr.Get(1))
return dest, nil
}

View File

@ -69,8 +69,5 @@ func TestGetOutlines(t *testing.T) {
require.NoError(t, err)
dstJson, err := json.Marshal(dstOutline)
require.NoError(t, err)
t.Log(string(srcJson))
t.Log(string(dstJson))
require.Equal(t, srcJson, dstJson)
}