Skip to content

Commit

Permalink
minor NetworkPeering code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Sep 12, 2017
1 parent 8d7dde9 commit 9f9d7db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public Observable<Network> getRemoteNetworkAsync() {
final NetworkPeeringImpl self = this;
if (self.remoteNetwork != null) {
return Observable.just(self.remoteNetwork);
} else if (ResourceUtils.subscriptionFromResourceId(this.remoteNetworkId()).equalsIgnoreCase(ResourceUtils.subscriptionFromResourceId(this.id()))) {
} else if (this.isSameSubscription()) {
// Fetch the remote network if within the same subscription
return this.manager().networks().getByIdAsync(this.remoteNetworkId())
.doOnNext(new Action1<Network>() {
Expand Down

0 comments on commit 9f9d7db

Please sign in to comment.