Skip to content

Commit dab9cef

Browse files
committed
Honour enabled
1 parent 4c7c1d5 commit dab9cef

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/commands/user/github_solution_syncer/sync_everything.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SyncEverything
55
initialize_with :user
66

77
def call
8-
return unless syncer
8+
return unless syncer&.enabled?
99

1010
if syncer.commit_to_main?
1111
sync_everything(syncer.main_branch_name)

app/commands/user/github_solution_syncer/sync_iteration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SyncIteration
55
initialize_with :iteration
66

77
def call
8-
return unless syncer
8+
return unless syncer&.enabled?
99

1010
files = FilesForIteration.(syncer, iteration)
1111
commit_message = GenerateCommitMessage.(syncer, iteration)

app/commands/user/github_solution_syncer/sync_solution.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SyncSolution
55
initialize_with :solution
66

77
def call
8-
return unless syncer
8+
return unless syncer&.enabled?
99

1010
if syncer.commit_to_main?
1111
sync_iterations(syncer.main_branch_name)

app/commands/user/github_solution_syncer/sync_track.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SyncTrack
55
initialize_with :user_track
66

77
def call
8-
return unless syncer
8+
return unless syncer&.enabled?
99

1010
if syncer.commit_to_main?
1111
sync_solutions(syncer.main_branch_name)

0 commit comments

Comments
 (0)