File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -261,21 +261,22 @@ func (platform *PlatformRelease) loadBoards() error {
261
261
262
262
for boardID , boardProperties := range propertiesByBoard {
263
263
boardProperties ["_id" ] = boardID // TODO: What is that for??
264
- board := platform .getOrCreateBoard (boardID )
264
+ board := platform .GetOrCreateBoard (boardID )
265
265
board .Properties .Merge (boardProperties )
266
- platform .Boards [boardID ] = board
267
266
}
268
267
269
268
return nil
270
269
}
271
270
272
- func (platform * PlatformRelease ) getOrCreateBoard (boardID string ) * Board {
271
+ func (platform * PlatformRelease ) GetOrCreateBoard (boardID string ) * Board {
273
272
if board , ok := platform .Boards [boardID ]; ok {
274
273
return board
275
274
}
276
- return & Board {
275
+ board := & Board {
277
276
BoardId : boardID ,
278
277
Properties : properties.Map {},
279
278
PlatformRelease : platform ,
280
279
}
280
+ platform .Boards [boardID ] = board
281
+ return board
281
282
}
You can’t perform that action at this time.
0 commit comments