From 483b79b372ea9c3830f4f24f2e5269c4eebeb049 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Tue, 6 Jan 2026 15:27:01 +0100 Subject: [PATCH] Simplify `README` code example by removing unnecessary line breaks and improving method chaining clarity. --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e0e866e..87b6ad0 100644 --- a/README.md +++ b/README.md @@ -428,12 +428,8 @@ CfDnsClient client = new CfDnsClient(true, "email@example.com", "yourApiKey"); ```java try { -List records = cfDnsClient.recordGet(zone, "www", RecordType.A); - System.out. - -println("Record IP: "+records.get(0). - -getContent()); + List records = cfDnsClient.recordGet(zone, "www", RecordType.A); + System.out.println("Record IP: "+records.get(0).getContent()); } catch (CloudflareApiException e) { if (e instanceof CloudflareNotFoundException) { log.warn("Sld not found: www"); @@ -448,5 +444,4 @@ getContent()); # Summary -`CfDnsClient` offers a simple interface for managing DNS entries via Cloudflare's public API, allowing seamless CRUD -operations and automation-friendly workflows. \ No newline at end of file +`CfDnsClient` offers a simple interface for managing DNS entries via Cloudflare's public API, allowing seamless CRUD operations and automation-friendly workflows. \ No newline at end of file