File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
modules/core/src/main/scala/org/scalasteward/core/git Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import org.scalasteward.core.git.FileGitAlg.{dotdot, gitCmd}
2626import org .scalasteward .core .io .process .{ProcessFailedException , SlurpOptions }
2727import org .scalasteward .core .io .{FileAlg , ProcessAlg , WorkspaceAlg }
2828import org .scalasteward .core .util .{Nel , Timestamp }
29- import scala .util .Try
3029
3130final class FileGitAlg [F [_]](config : Config )(implicit
3231 fileAlg : FileAlg [F ],
@@ -105,7 +104,7 @@ final class FileGitAlg[F[_]](config: Config)(implicit
105104
106105 override def getCommitDate (repo : File , sha1 : Sha1 ): F [Timestamp ] =
107106 git(" show" , " --no-patch" , " --format=%ct" , sha1.value.value)(repo)
108- .flatMap(out => F .fromTry( Try ( out.mkString.trim.toLong) ))
107+ .flatMap(out => F .catchNonFatal( out.mkString.trim.toLong))
109108 .map(Timestamp .fromEpochSecond)
110109
111110 override def hasConflicts (repo : File , branch : Branch , base : Branch ): F [Boolean ] = {
You can’t perform that action at this time.
0 commit comments