repository-provider 29.2.2 → 29.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "29.2.2",
3
+ "version": "29.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -218,9 +218,7 @@ export class PullRequest extends OwnedObject {
218
218
  * @return {BaseProvider}
219
219
  */
220
220
  get provider() {
221
- return this.owner === undefined
222
- ? undefined
223
- : this.owner.provider;
221
+ return this.owner && this.owner.provider;
224
222
  }
225
223
 
226
224
  /**