File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
EasyInsta/src/main/java/com/xcoder/easyinsta Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -408,15 +408,15 @@ public Void apply(Throwable throwable) {
408
408
* @return A {@link Task} holding bio of the user.
409
409
*/
410
410
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 <>();
413
413
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 ;
418
418
419
- return task ;
419
+ return task ;
420
420
}
421
421
422
422
@@ -491,3 +491,4 @@ public Task<Integer> getPostCount(@NotNull String username) {
491
491
492
492
return task ;
493
493
}
494
+ }
You can’t perform that action at this time.
0 commit comments