Skip to content

Commit

Permalink
Updated TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer committed Jul 10, 2018
1 parent 4294932 commit f239907
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ $ go get -u github.com/sbrow/ps

`sbrow:` (2) Make TextLayer a subclass of ArtLayer.

`sbrow:` Reduce cylcomatic complexity
`sbrow:` Reduce cylcomatic complexity of ActiveDocument().

`sbrow:` Does funky things when passed invalid layername.
`sbrow:` refactor Close to Document.Close

`sbrow:` Move to Document

`sbrow:` get rid of the semicolon.
`sbrow:` get rid of the semicolon at the end of JSLayer.

## <a name="pkg-doc">Documentation</a>
For full Documentation please visit https://godoc.org/github.com/sbrow/ps
Expand Down
2 changes: 1 addition & 1 deletion document.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (d *Document) LayerSet(name string) *LayerSet {

// ActiveDocument returns document currently focused in Photoshop.
//
// TODO(sbrow): Reduce cylcomatic complexity
// TODO(sbrow): Reduce cylcomatic complexity of ActiveDocument().
func ActiveDocument() (*Document, error) {
log.Println("Loading ActiveDoucment")
d := &Document{}
Expand Down
4 changes: 2 additions & 2 deletions ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func ApplyDataset(name string) error {
}

// Close closes the active document in Photoshop, using the given save option.
// TODO(sbrow): Move to Document
// TODO(sbrow): refactor Close to Document.Close
func Close(save SaveOption) error {
_, err := runner.Run("close", fmt.Sprint(save))
return err
Expand Down Expand Up @@ -106,7 +106,7 @@ func Init() error {
// The output always ends with a semicolon, so if you want to access a specific
// property of the layer, you'll have to trim the output before concatenating.
//
// TODO(sbrow): get rid of the semicolon.
// TODO(sbrow): get rid of the semicolon at the end of JSLayer.
func JSLayer(path string) string {
pth := strings.Split(path, "/")
js := "app.activeDocument"
Expand Down

0 comments on commit f239907

Please sign in to comment.