Skip to content

Commit

Permalink
moved common line of code out of if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
thongsav-usgs committed Jun 24, 2016
1 parent c552188 commit 51558d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils-json.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ getApprovals <- function(data, chain_nm, legend_nm, appr_var_all, month=NULL, po
for(i in seq_along(date_index_list)){
d <- date_index_list[[i]]

applicable_dates <- points[['time']][d]

if(isDV){
applicable_dates <- points[['time']][d]
applicable_values <- points[['value']][d]
} else {
applicable_dates <- points[['time']][d]
applicable_values <- substitute(getYvals_approvals(plot_object, length(applicable_dates)))
}

Expand Down

0 comments on commit 51558d5

Please sign in to comment.