Skip to content

Commit d6a77df

Browse files
authored
Added javadocs comments
1 parent dd5c60d commit d6a77df

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

EasyInsta/src/main/java/com/xcoder/easyinsta/Instagram.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,15 @@ public Void apply(Throwable throwable) {
408408
* @return A {@link Task} holding bio of the user.
409409
*/
410410
public Task<String> getBio(@NotNull String username) {
411-
Object object = utils.getProfileMetadata(client.actions().users().findByUsername(username),"bio");
412-
Task<String> task = new Task<>();
411+
Object object = utils.getProfileMetadata(client.actions().users().findByUsername(username),"bio");
412+
Task<String> task = new Task<>();
413413

414-
if (object instanceof Throwable)
415-
task.exception = (Throwable) object;
416-
else
417-
task.value = (String) object;
414+
if (object instanceof Throwable)
415+
task.exception = (Throwable) object;
416+
else
417+
task.value = (String) object;
418418

419-
return task;
419+
return task;
420420
}
421421

422422

@@ -491,3 +491,4 @@ public Task<Integer> getPostCount(@NotNull String username) {
491491

492492
return task;
493493
}
494+
}

0 commit comments

Comments
 (0)