Skip to content

Commit

Permalink
Merge branch 'lint-tidy' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
dotemacs committed Sep 7, 2020
2 parents 99da850 + 8924eb3 commit 122c335
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
### Changed
- Using lists for :imports
- Updated documentation of `split-pdf-at` in the README

- Imports in `pdfboxing.common` comply with clj-kondo linting

## 0.1.15.1-SNAPSHOT

Expand Down
14 changes: 7 additions & 7 deletions src/pdfboxing/common.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns pdfboxing.common
(:require [clojure.java.io :as io])
(:import java.io.File
org.apache.pdfbox.pdmodel.PDDocument
org.apache.pdfbox.io.RandomAccessFile
org.apache.pdfbox.pdfparser.PDFParser))
(:import (java.io File)
(org.apache.pdfbox.pdmodel PDDocument)
(org.apache.pdfbox.io RandomAccessFile)
(org.apache.pdfbox.pdfparser PDFParser)))

(defn try-get-as-pdf
"Try and get the pdf-file-or-path as a PDF.
Expand Down Expand Up @@ -39,15 +39,15 @@
(obtain-document [source]))

(extend-protocol PDFDocument
java.lang.String
String
(obtain-document [source]
(load-pdf source))

java.io.File
File
(obtain-document [source]
(load-pdf source))

org.apache.pdfbox.pdmodel.PDDocument
PDDocument
(obtain-document [source]
source))

Expand Down

0 comments on commit 122c335

Please sign in to comment.