Skip to content

Commit 8bd22f7

Browse files
committed
Simplify allocated check
1 parent d4b81bc commit 8bd22f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fpm/git.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ logical function git_is_same(this,that)
151151
type is (git_target_t)
152152
if (.not.(this%descriptor==other%descriptor)) return
153153
if (allocated(this%url) .neqv. allocated(other%url)) return
154-
if (allocated(this%url) .and. allocated(other%url)) then
154+
if (allocated(this%url)) then
155155
if (.not.(this%url==other%url)) return
156156
end if
157157
if (allocated(this%object) .neqv. allocated(other%object)) return
158-
if (allocated(this%object) .and. allocated(other%object)) then
158+
if (allocated(this%object)) then
159159
if (.not.(this%object==other%object)) return
160160
end if
161161
class default

0 commit comments

Comments
 (0)