| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package common | 5 package common |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "time" | 9 "time" |
| 10 | 10 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 if err != nil { | 271 if err != nil { |
| 272 return nil, err | 272 return nil, err |
| 273 } | 273 } |
| 274 for _, cs := range p.Consoles { | 274 for _, cs := range p.Consoles { |
| 275 if cs.Name == consoleName { | 275 if cs.Name == consoleName { |
| 276 return cs, nil | 276 return cs, nil |
| 277 } | 277 } |
| 278 } | 278 } |
| 279 return nil, fmt.Errorf("Console %s not found in project %s", consoleName
, projName) | 279 return nil, fmt.Errorf("Console %s not found in project %s", consoleName
, projName) |
| 280 } | 280 } |
| OLD | NEW |