File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports = class Archive {
17
17
} )
18
18
return data
19
19
} catch ( error ) {
20
- if ( error . status === 404 && ! this . getDesiredArchiveState ( ) ) {
20
+ if ( error . status === 404 ) {
21
21
return null
22
22
}
23
23
throw error
@@ -59,13 +59,13 @@ module.exports = class Archive {
59
59
shouldArchive ( repository = this . repository ) {
60
60
const desiredState = this . getDesiredArchiveState ( )
61
61
if ( desiredState === null ) return false
62
- return ! repository . archived && desiredState
62
+ return ! repository ? .archived && desiredState
63
63
}
64
64
65
65
shouldUnarchive ( repository = this . repository ) {
66
66
const desiredState = this . getDesiredArchiveState ( )
67
67
if ( desiredState === null ) return false
68
- return repository . archived && ! desiredState
68
+ return repository ? .archived && ! desiredState
69
69
}
70
70
71
71
isArchived ( ) {
You can’t perform that action at this time.
0 commit comments