Skip to content

Commit bbb37db

Browse files
committed
Use properties.LoadFromPath() to load library.properties
Since the properties package has a function supporting the paths.Path type the library.properties path starts in, it was silly to convert it to a string for use with properties.Load().
1 parent 6dbedc6 commit bbb37db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/library/libraryproperties/libraryproperties.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
// Properties parses the library.properties from the given path and returns the data.
2828
func Properties(libraryPath *paths.Path) (*properties.Map, error) {
29-
libraryProperties, err := properties.Load(libraryPath.Join("library.properties").String())
29+
libraryProperties, err := properties.LoadFromPath(libraryPath.Join("library.properties"))
3030
if err != nil {
3131
return nil, err
3232
}

0 commit comments

Comments
 (0)