mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
removed redundant code
This commit is contained in:
committed by
Aiden McClelland
parent
865bb12f31
commit
5b248013e5
@@ -207,14 +207,11 @@ listDisksLogic :: (Has (Error S9Error) sig m, MonadIO m) => m [AppMgr.DiskInfo]
|
||||
listDisksLogic = runExceptT AppMgr.diskShow >>= liftEither
|
||||
|
||||
ejectDiskLogic :: (Has (Error S9Error) sig m, MonadIO m) => Text -> m ()
|
||||
ejectDiskLogic t = runExceptT (diskEject t) >>= liftEither
|
||||
|
||||
diskEject :: MonadIO m => Text -> S9ErrT m ()
|
||||
diskEject t = do
|
||||
ejectDiskLogic t = do
|
||||
(ec, _) <- AppMgr.readProcessInheritStderr "eject" [toS t] ""
|
||||
case ec of
|
||||
ExitSuccess -> pure ()
|
||||
ExitFailure n -> throwE $ EjectE n
|
||||
ExitSuccess -> pure ()
|
||||
ExitFailure n -> throwError $ EjectE n
|
||||
|
||||
insertBackupResult :: MonadIO m => AppId -> Version -> Bool -> SqlPersistT m (Entity BackupRecord)
|
||||
insertBackupResult appId appVersion succeeded = do
|
||||
|
||||
Reference in New Issue
Block a user