File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/main/java/org/cryptomator/linux/update Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11package org .cryptomator .linux .update ;
22
33import org .cryptomator .integrations .common .CheckAvailability ;
4+ import org .cryptomator .integrations .common .DistributionChannel ;
45import org .cryptomator .integrations .common .OperatingSystem ;
56import org .cryptomator .integrations .common .Priority ;
67import org .cryptomator .integrations .update .UpdateFailedException ;
2425
2526@ Priority (1000 )
2627@ CheckAvailability
28+ @ DistributionChannel (DistributionChannel .Value .LINUX_FLATPAK )
2729@ OperatingSystem (OperatingSystem .Value .LINUX )
2830public class FlatpakUpdater implements UpdateService , AutoCloseable {
2931
@@ -44,9 +46,10 @@ public boolean isSupported() {
4446 }
4547
4648 @ Override
47- public String isUpdateAvailable (DistributionChannel channel ) {
48- if (channel != DistributionChannel .LINUX_FLATPAK ) {
49- return "" ;
49+ public String isUpdateAvailable (DistributionChannel .Value channel ) {
50+ if (channel != DistributionChannel .Value .LINUX_FLATPAK ) {
51+ LOG .error ("Wrong channel provided: {}" , channel );
52+ return null ;
5053 }
5154 try (ExecutorService executor = Executors .newFixedThreadPool (10 )) {
5255 var task = new UpdateCheckerTask (APP_NAME );
@@ -57,7 +60,7 @@ public String isUpdateAvailable(DistributionChannel channel) {
5760 LOG .error (e .toString (), e .getCause ());
5861 }
5962 }
60- return "" ;
63+ return null ;
6164 }
6265
6366 @ Override
You can’t perform that action at this time.
0 commit comments