Skip to content

Commit c525d44

Browse files
author
Jarkko Laitinen
committed
Refactored parsing method.
1 parent b2e9236 commit c525d44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fi/cosky/sdk/API.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,7 @@ private String method(Verb verb) {
439439
}
440440

441441
private Link parseLocationLinkFromString(String s) {
442-
if (s.contains("/tokens"))
443-
return new Link("location", s, "GET","", true);
444-
else
442+
if (!s.contains("/tokens"))
445443
s = s.substring(s.lastIndexOf("/users"));
446444
return new Link("location", s, "GET", "", true);
447445
}

0 commit comments

Comments
 (0)