Skip to content

Commit c6ea05e

Browse files
committed
do not explode if the repo key is missing
1 parent f450d12 commit c6ea05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/travis/api/v3/models/repository.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def key_pair
145145
end
146146

147147
def private_key
148-
key.private_key
148+
key&.private_key
149149
end
150150

151151
def token

0 commit comments

Comments
 (0)