Skip to content

Commit 95c683e

Browse files
authored
Apply suggestions from code review
1 parent b37fdea commit 95c683e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/microsoft/graph/http/BaseRequestBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public String getRequestUrl() {
9494
* @return the full list of options for this request
9595
*/
9696
public List<? extends Option> getOptions(final Option... requestOptions) {
97-
return requestOptions != null && requestOptions.length > 0 ?
97+
return Collections.unmodifiableList(requestOptions != null && requestOptions.length > 0 ?
9898
Arrays.asList(requestOptions)
99-
: Collections.unmodifiableList(options);
99+
: options);
100100
}
101101

102102
/**

0 commit comments

Comments
 (0)