Skip to content

Commit 85cb4ae

Browse files
authored
Rename scan to scanText for consistency (#21)
1 parent cb42999 commit 85cb4ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ try (NightfallClient c = NightfallClient.Builder.defaultClient()) {
8282
ScanTextConfig config = ScanTextConfig.fromDetectionRuleUUIDs(Arrays.asList(rule), 20);
8383
ScanTextRequest req = new ScanTextRequest(payload, config);
8484

85-
ScanTextResponse response = c.scan(req);
85+
ScanTextResponse response = c.scanText(req);
8686
System.out.println("findings: " + response.getFindings());
8787
}
8888
```

src/main/java/ai/nightfall/scan/NightfallClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void close() {
8787
* @throws IllegalArgumentException thrown if <code>request</code> is null
8888
* @throws NightfallRequestTimeoutException thrown if the request is aborted because the timeout is exceeded
8989
*/
90-
public ScanTextResponse scan(ScanTextRequest request) {
90+
public ScanTextResponse scanText(ScanTextRequest request) {
9191
if (request == null) {
9292
throw new IllegalArgumentException("request must be non-null");
9393
}

0 commit comments

Comments
 (0)