Skip to content

Commit bf71284

Browse files
committed
refactoring
1 parent a08215b commit bf71284

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/io/github/patternatlas/api/service/PatternRenderServiceImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,11 @@ public Integer[] getNextOccurance(String content, String begin, String end) {
191191
public byte[] renderContentViaAPI(String content, List<String> packages, String output) {
192192
LatexContent latexContent = new LatexContent(content, packages, output);
193193
byte[] file = null;
194-
String url = null;
195194
try {
196195
RestTemplate restTemplate = new RestTemplate();
197196
HttpHeaders headers = new HttpHeaders();
198197
headers.setContentType(MediaType.APPLICATION_JSON);
199-
url = baseAPIEndpoint + "?content="
198+
String url = baseAPIEndpoint + "?content="
200199
+ URLEncoder.encode(latexContent.getContent(), "UTF-8");
201200
for (String latexPackage : latexContent.getLatexPackages()
202201
) {

0 commit comments

Comments
 (0)