Skip to content

Commit eb9e737

Browse files
committed
Adopting ordered properties map (part 3)
1 parent 3c198fc commit eb9e737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helper_tools_downloader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func coreAlreadyDownloadedAndUnpacked(targetPath *paths.Path, core Core) (bool,
393393
return false, i18n.WrapError(err)
394394
}
395395

396-
if core.Version != platform["version"] {
396+
if core.Version != platform.Get("version") {
397397
err := corePath.RemoveAll()
398398
return false, i18n.WrapError(err)
399399
}
@@ -446,7 +446,7 @@ func libraryAlreadyDownloadedAndUnpacked(targetPath *paths.Path, library Library
446446
if err != nil {
447447
return false
448448
}
449-
return libProps["version"] == library.Version || libProps["version"] == library.VersionInLibProperties
449+
return libProps.Get("version") == library.Version || libProps.Get("version") == library.VersionInLibProperties
450450
}
451451

452452
func downloadAndUnpackCore(core Core, url string, targetPath *paths.Path) error {

0 commit comments

Comments
 (0)